This project provides a Python implementation for calculating CRC (Cyclic Redundancy Check) values for both hex and ASCII input data.
- Calculate CRC for hex input using the CRC-CCITT algorithm.
- Calculate CRC for ASCII input.
- Utilizes the
crcmod
library for CRC calculations.
To use this project, ensure you have Python installed on your machine. You can install the required library using pip:
pip install crcmod
- Clone the repository or download the
crc_calculator.py
file. - Run the script using Python:
python crc_calculator.py
- Modify the
val
variable in the script to change the input data for CRC calculation.
For the input value 530008000460
, the script will output the corresponding CRC values for both hex and ASCII formats.
This project is licensed under the MIT License - see the LICENSE file for details.