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
Release history Release notifications | RSS feed
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.2.0.tar.gz
(2.4 kB
view details)
File details
Details for the file fnv-0.2.0.tar.gz
.
File metadata
- Download URL: fnv-0.2.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9c720bd3d94ee174531014d33e0b553b0412e90e0d33ecf93358e17ce78f54e |
|
MD5 | e61b4d4856f2d0b6b8e5b403f0555a1e |
|
BLAKE2b-256 | fe2a94b2bc7d872b066c3ee123105b8a713ff9f0867403de0642bafb0b678690 |