Skip to main content

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.

Files for crc8, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size crc8-0.0.1-py3-none-any.whl (5.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size crc8-0.0.1.tar.gz (4.9 kB) File type Source Python version None Upload date Hashes View
Filename, size crc8-0.0.1.zip (7.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page