You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('') and can be up to 35 characters long.
dave
170b23f5ec

5 years ago  

LICENSE  6 years ago  
README.md  5 years ago  
main.go  5 years ago 
README.md
CRC
CRC is a simple commandline utility to compute various CRC values for one or more files.
It supports three CRC algorithms (selected via mode=<alg>
):
crc64ecma
uses the ECMA polynomial to compute a 64bit CRC.crc64iso
uses the ISO polynomial to compute a 64bit CRC.crc32
(default) uses the IEEE polynomial to compute a 32bit CRC. This is equivalent to thecrc32
linux binary.
If only a single file is specified on the command line, then only the hexadecimal hash is printed. If more than one file is specified, the output will be
<hash><tab><filename>
for each file.
Installation
go get github.com/augustoroman/crc
Usage
# Compute the default hash (crc32 w/ IEEE polynomial) of one or more files.
crc <file> [<file> ...]
# Compute the crc64 hash with ISO polynomial.
crc mode=crc64iso <file> [<file> ...]
# Compute the crc64 hash (with the ECMA polynomial).
crc mode=crc64ecma <file> [<file> ...]
License
This is released under the MIT license