Skip to main content

A module that implements the CRC8 hash algorithm for Python 2 and 3.

Project description

Build Status Python Package Version on Pypi Downloads from Pypi

A module that implements the CRC8 hash algorithm for Python 2 and 3.


pip install crc8

Or copy the file somewhere where you can import it.


The crc8 class has the same interface as the hash functions in the hashlib module.


import crc8
hash = crc8.crc8()
assert hash.hexdigest() == 'c0'
assert hash.digest() == b'\xc0'
assert hash.hexdigest() == '00'


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.


Install twine.

python sdist
source .env # if you have stored TWINE_USERNAME and TWINE_PASSWORD
twine upload dist/*

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

crc8-0.2.0.tar.gz (5.9 kB view hashes)

Uploaded source

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