Skip to content

This project provides a Python implementation for calculating CRC (Cyclic Redundancy Check) values for both hex and ASCII input data.

License

Notifications You must be signed in to change notification settings

pkscripts/crc-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

CRC Calculator

This project provides a Python implementation for calculating CRC (Cyclic Redundancy Check) values for both hex and ASCII input data.

Features

  • Calculate CRC for hex input using the CRC-CCITT algorithm.
  • Calculate CRC for ASCII input.
  • Utilizes the crcmod library for CRC calculations.

Installation

To use this project, ensure you have Python installed on your machine. You can install the required library using pip:

pip install crcmod

Usage

  1. Clone the repository or download the crc_calculator.py file.
  2. Run the script using Python:

python crc_calculator.py

  1. Modify the val variable in the script to change the input data for CRC calculation.

Example

For the input value 530008000460, the script will output the corresponding CRC values for both hex and ASCII formats.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

This project provides a Python implementation for calculating CRC (Cyclic Redundancy Check) values for both hex and ASCII input data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages