Git Product home page Git Product logo

crc's Introduction

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 <hex-value> 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.

crc's People

Contributors

liquidityc avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.