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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fnvstring-0.9.7.tar.gz.
File metadata
- Download URL: fnvstring-0.9.7.tar.gz
- Upload date:
- Size: 13.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ced40457df3449cf1b5dc6938ac8f33ec7fb919432362bbedc9752c4da4cc44
|
|
| MD5 |
48f49af25168ca59ccc06453a34ee33a
|
|
| BLAKE2b-256 |
862313cfcc12ae54ee57c0e2fcdb26221bdc03c7370e52e56295d3a2e8405020
|
File details
Details for the file fnvstring-0.9.7-py2.py3-none-any.whl.
File metadata
- Download URL: fnvstring-0.9.7-py2.py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d24f2351f68a5eb64964f351cdab0be1d3e59c41c6b58a13491d8e349dbfd8e
|
|
| MD5 |
33a03d4b8bd19f43f0077482e3b3ccc2
|
|
| BLAKE2b-256 |
7f10753fffb35fd316c0cb653a5d8b0cb01d4ea8da73178a4664c0ec579f096f
|