Skip to main content

CrcElk is an updated fork of the CrcMoose module for recent versions of Python. It provides a pure Python implementation of the CRC algorithm and allows for variants to easily be defined by providing their parameters such as width, starting polynomial, etc. Python versions 2.6+ and 3.1+ are supported.

Project description

Github Issues PyPi Release

CrcElk is an updated fork of the CrcMoose module for recent versions of Python. It provides a pure Python implementation of the CRC algorithm and allows for variants to easily be defined by providing their parameters such as width, starting polynomial, etc. Python versions 2.6+ and 3.1+ are supported.

Usage Example

>>> import crcelk
>>> import struct
>>> crc = crcelk.CRC_CCITT.calc_bytes(b'Hello World')
>>> print("{0} (0x{0:04x})".format(crc))
19749 (0x4d25)

License

CrcElk is released under the same MIT license as the original CrcMoose source. Details are available in the file header.

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

crcelk-1.3.tar.gz (7.8 kB view details)

Uploaded Source

File details

Details for the file crcelk-1.3.tar.gz.

File metadata

  • Download URL: crcelk-1.3.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for crcelk-1.3.tar.gz
Algorithm Hash digest
SHA256 0e5f963d70d13318c67f4505aae8c39005a9f6a6d40bd9269de322b6e25a22a7
MD5 ce8d7ce51e06ffe72b06675450cade33
BLAKE2b-256 c7f7690d62b4ba24d890fed9dd154fc715fb3e21a4d9009accb3f4203ab1cf91

See more details on using hashes here.

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