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 = Fvn64SaltedHasher(salt='Any$tringYouWant, even none')
print(my_hasher.hash('Hello World!')) # Must output dcSEMoww20o if you dont chant the 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.5.tar.gz
(13.7 kB
view hashes)
Built Distribution
Close
Hashes for fnvstring-0.9.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ba490ad602dbc4c6c0f04f39d6843038becb4f819cdd6bb4a1437d66a23f534 |
|
MD5 | a60f9524faf009686f056e798d691fbc |
|
BLAKE2b-256 | 5437d57925d51256a22a1170bbffd5743557ede5e6923e48e79602ac8c13e6bb |