An open API service indexing awesome lists of open source software.

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

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.