Skip to main content

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


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)

Uploaded Source

Built Distribution

fnvstring-0.9.7-py2.py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page