https://github.com/scriptim/crc-calculator
Website and CLI for error detection with Cyclic Redundancy Checks
https://github.com/scriptim/crc-calculator
cli crc crc-algorithms crc-calculation cyclic-redundancy-check website
Last synced: about 1 month ago
JSON representation
Website and CLI for error detection with Cyclic Redundancy Checks
- Host: GitHub
- URL: https://github.com/scriptim/crc-calculator
- Owner: Scriptim
- License: mit
- Created: 2019-01-16T21:19:04.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-07T22:06:18.000Z (about 5 years ago)
- Last Synced: 2025-02-16T19:32:41.470Z (4 months ago)
- Topics: cli, crc, crc-algorithms, crc-calculation, cyclic-redundancy-check, website
- Language: JavaScript
- Homepage: https://scriptim.github.io/crc-calculator/
- Size: 16.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CRC Calculator
Website and CLI for error detection with Cyclic Redundancy Checks.
## Usage
$ node index.js --help
CRC CalculatorUsage:
node index.js --help | --version | --generators
node index.js ( | --generator ) [--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.### Examples
#### Default Usage
$ node index.js 101001011 1010
101001011000 : 1010
1010
----
000001011000
1010
----
0001000
1010
----
0010101001011010
#### Check a codeword
$ node index.js 101001011010 1010 --check
101001011010 : 1010
1010
----
000001011010
1010
----
0001010
1010
----
0000Error: false
#### Use a predefined generator polynomial
$ node index.js 101001011 --generator crc-1
1010010110 : 11
11
--
0110010110
11
--
000010110
11
--
01110
11
--
0010
11
--
011010010111