Skip to content

A pure Python implementation of the CRC algorithm.

Notifications You must be signed in to change notification settings

zeroSteiner/crcelk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CrcElk

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.

About

A pure Python implementation of the CRC algorithm.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages