https://github.com/kalebu/crc16-modbus-in-python
Cyclic Redundance Check hashing algorithm implemented in python
https://github.com/kalebu/crc16-modbus-in-python
crc crc-16-modbus-in-python crc-algorithms crc16 hashing-algorithms python-tanzania python3
Last synced: 9 months ago
JSON representation
Cyclic Redundance Check hashing algorithm implemented in python
- Host: GitHub
- URL: https://github.com/kalebu/crc16-modbus-in-python
- Owner: Kalebu
- License: mit
- Created: 2021-02-20T16:14:41.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-20T16:50:43.000Z (almost 5 years ago)
- Last Synced: 2025-03-15T00:30:22.892Z (9 months ago)
- Topics: crc, crc-16-modbus-in-python, crc-algorithms, crc16, hashing-algorithms, python-tanzania, python3
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 6
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# crc16-modbus-in-Python
Cyclic Redundance Check hashing algorithm implemented in python
A bit brief about CRC
---------------------
A cyclic redundancy check (CRC) is an error-detecting code commonly used in digital networks and storage devices to detect accidental changes to raw data. Blocks of data entering these systems get a short check value attached, based on the remainder of a polynomial division of their contents. On retrieval, the calculation is repeated and, in the event the check values do not match, corrective action can be taken against data corruption
Usage
```python
>> from crc import crc16
>> example_str = 'Cyclic redundat check 16 modbus alogirthm in python'
>> crc16(example_str)
'396E'
```
All the credits to [kalebu](https://github.com/kalebu)