Skip to main content

FNV hash functions.

Project description

This is a pure python implementation of FNV algorithm as specified in http://isthe.com/chongo/tech/comp/fnv/.

Only works with Python 3. And Python 2 is not planned to be supported.

Usage

$ pip install fnv
import fnv

data = 'my data'
fnv.hash(data, algorithm=fnv.fnv_1a, bits=64) # uses fnv.fnv_1a algorithm
fnv.hash(data, bits=64) # fnv.fnv_1a is a default algorithm
fnv.hash(data, algorithm=fnv.fnv, bits=64)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fnv-0.1.0.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file fnv-0.1.0.tar.gz.

File metadata

  • Download URL: fnv-0.1.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for fnv-0.1.0.tar.gz
Algorithm Hash digest
SHA256 23956f734e391ceb33510d32d0754769469c33259f380bf4b2af09d9e4e1a6f6
MD5 4dbb9b52146fa4c116cb36ab502bfcd8
BLAKE2b-256 93695a1d50ee8e6f75f034b4ec18359b40d752b452e5418a827818b5c04cf144

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page