Python fnv hash string implementation
Project description
fnvstring is a hash implementation of the Fowler–Noll–Vo non-cryptographic function.
Installation
$ pip install fnvstring
.
Usage
usage in terminal
You can hash any string from terminal just typing
$ fnvstring "Hello World!"
rzWLzszm9JE
usage in code
from fnvstring import Fvn64SaltedHasher
my_hasher = Fnv64SaltedHasher(salt='Any$tringYouWant, even none')
print(my_hasher.hash('Hello World!')) # Will output 63COXAuMHMw if you don't change this salt param
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
fnvstring-0.9.4.tar.gz
(13.7 kB
view hashes)
Built Distribution
Close
Hashes for fnvstring-0.9.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6768942f1dd6a057f62fa5759a0b6eb0ee1bfc0a8dadfd399bb0e94e3d373b08 |
|
MD5 | 7dd39c46d5683e0fc254f7796eb07a70 |
|
BLAKE2b-256 | 2182d28c67e010163ea78c189bd01826ecfede173ccc2d09b1427ab98b9019cd |