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.7.tar.gz
(13.7 kB
view hashes)
Built Distribution
Close
Hashes for fnvstring-0.9.7-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d24f2351f68a5eb64964f351cdab0be1d3e59c41c6b58a13491d8e349dbfd8e |
|
MD5 | 33a03d4b8bd19f43f0077482e3b3ccc2 |
|
BLAKE2b-256 | 7f10753fffb35fd316c0cb653a5d8b0cb01d4ea8da73178a4664c0ec579f096f |