https://github.com/liquidityc/crc
A simple CRC (cyclic redundancy check) tool
https://github.com/liquidityc/crc
Last synced: 6 months ago
JSON representation
A simple CRC (cyclic redundancy check) tool
- Host: GitHub
- URL: https://github.com/liquidityc/crc
- Owner: LiquidityC
- License: mit
- Created: 2024-01-19T14:21:06.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-08T08:21:26.000Z (over 2 years ago)
- Last Synced: 2024-03-08T09:29:06.932Z (over 2 years ago)
- Language: C
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A simple tool to calculate CRC
**crc** is a simple program to calculate CRC values created to simplify some of
my work routines. Currently it only supports CRC-16-CCITT-FALSE because that's
all that I've required at work. But the code is written in a way that it should
be easy to add other CRC algorithms.
## Compiling
`make`
## Installing
`PREFIX=~/.local make install` or `PREFIX=/usr make install`. Modify **PREFIX** to your needs.
## Usage
- `crc ` To generate a crc from a hex value. Eg. `crc beef1234`
- `crc -h` To print help
- `crc -l` To list supported CRC algorithms
### Generating a CRC
- `crc beef1234` will output `488d`
### Validating a CRC
The CRC of a value with CRC appended to it should be 0. Eg. `crc beef1234488d` will output `0`.
## Contributing
Yes please! I'm happy to accept pull requests.