Scriptim/crc-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Website and CLI for error detection with Cyclic Redundancy Checks.

https://scriptim..io/crc-calculator/

$ node index.js --help
CRC Calculator

Usage:
  node index.js --help | --version | --generators
  node index.js <data> (<generator> | --generator <generator name>) [--check] [--short]

Positional Arguments:
  data       Binary data string.
  generator  Binary string encoding the CRC polynomial.

Options:
  -h --help        Show this help page.
  -v --version     Show version.
  -s --short       Only show the resulting codeword.
  -c --check       Check a codeword for errors.
  -g --generator   Name of a predefined CRC polynomial.
  -l --generators  Show a list of predefined CRC polynomials.
$ node index.js 101001011 1010
101001011000 : 1010
1010
----
000001011000
    1010
    ----
    0001000
        1010
        ----
        0010

101001011010
$ node index.js 101001011010 1010 --check
101001011010 : 1010
1010
----
000001011010
    1010
    ----
    0001010
        1010
        ----
        0000

Error: false
$ node index.js 101001011 --generator crc-1
1010010110 : 11
11
--
0110010110
11
--
000010110
    11
    --
    01110
      11
      --
      0010
        11
        --
        01

1010010111

About

Website and CLI for error detection with Cyclic Redundancy Checks

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published