1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
Pure Python FNV hash implementation
===================================
.. image:: https://travis-ci.org/znerol/py-fnvhash.svg?branch=master
:target: https://travis-ci.org/znerol/py-fnvhash
Pure Python implementation of the FNV_ hash family with 100% test coverage.
Take a look at pyhash_ for use cases where performance is more important than
portability.
.. _FNV: http://isthe.com/chongo/tech/comp/fnv/
.. _pyhash: https://pypi.python.org/pypi/pyhash
Usage
-----
::
>>> from fnvhash import fnv1a_32
>>> hex(fnv1a_32(b'foo'))
'0xa9f37ed7'
License
-------
The software is subject to the MIT license.
|