Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/povilasb/pyfnv
FNV hash implementation in Python3
https://github.com/povilasb/pyfnv
Last synced: about 1 month ago
JSON representation
FNV hash implementation in Python3
- Host: GitHub
- URL: https://github.com/povilasb/pyfnv
- Owner: povilasb
- License: mit
- Created: 2016-06-13T20:47:07.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-07-19T19:28:46.000Z (over 8 years ago)
- Last Synced: 2024-10-05T08:47:49.036Z (about 1 month ago)
- Language: Python
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.rst
- License: LICENSE.txt
Awesome Lists containing this project
README
=====
About
=====This is a pure python implementation of FNV algorithm as specified in
http://isthe.com/chongo/tech/comp/fnv/.Only works with Python 3.
And Python 2 is not planned to be supported.Usage
=====::
$ pip install fnv
.. code:: python
import fnv
data = 'my data'
fnv.hash(data, algorithm=fnv.fnv_1a, bits=64) # uses fnv.fnv_1a algorithm
fnv.hash(data, bits=64) # fnv.fnv_1a is a default algorithm
fnv.hash(data, algorithm=fnv.fnv, bits=64)