A module that implements the CRC8 hash algorithm for Python 2 and 3.
Project description
A module that implements the CRC8 hash algorithm for Python 2 and 3.
Installation
pip install crc8
Or copy the crc8.py file somewhere where you can import it.
Usage
The crc8 class has the same interface as the hash functions in the hashlib module.
Example:
import crc8
hash = crc8.crc8()
hash.update(b'123')
assert hash.hexdigest() == 'c0'
Contribute
If something s not there that you would like to have, open an issue, create a pull request.
The license is MIT and I value contributions if you modify the code.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
crc8-0.0.3.zip
(7.3 kB
view hashes)
crc8-0.0.3.tar.gz
(4.7 kB
view hashes)
Built Distributions
crc8-0.0.3.win32.exe
(196.5 kB
view hashes)
crc8-0.0.3-py3-none-any.whl
(5.1 kB
view hashes)
crc8-0.0.3-py2-none-any.whl
(5.1 kB
view hashes)