Cross-platform CRC-64 command-line utility.
Go to file
LoRd_MuldeR 1206f776ca Updated README file. 2022-09-19 21:53:58 +02:00
dist Added simple build scripts for Linux, FreeBSD, Win32 and MacOS X platforms. 2022-09-17 18:27:25 +02:00
win32 Various improvements to options parsing. 2022-09-15 21:52:33 +02:00
.gitignore Added solution for MSVC. 2022-09-09 21:50:27 +02:00
LICENSE Added README file. 2022-09-10 22:04:00 +02:00
Makefile Adjust buffer size + small improvement to is_directory() function + code clean-up. 2022-09-17 13:43:28 +02:00
README.md Updated README file. 2022-09-19 21:53:58 +02:00
crc64.c Added support for the "--append-length" option. 2022-09-19 21:41:32 +02:00

README.md

CRC-64

Simple cross-platform command-line tool for computing CRC-64 (ECMA-182) checksums.

The crc64 utility writes to the standard output three whitespace separated fields for each input file. These fields are the CRC (Cyclic Redundancy Check) checksum of the file, the total number of octets in the file and the file name. If no file name is specified, the standard input is used.

The generator polynomial use for CRC-64 computations is: 0x42F0E1EBA9EA3693

Synopsis

crc64.exe [OPTIONS] [<file_1> [<file_2> ... <file_n>]]

Options

Option Description
-h, --help, --version Show help screen / show version information
-b, --binary Output digest in binary format (default is hex-string)
-d, --decimal Output digest in decimal string format
-u, --upper-case Print digest as upper-case (default is lower-case)
-p, --no-padding Print digest without any leading zeros
-s, --silent Suppress error messages
-e, --ignore-errors Ignore I/O errors and proceed with the next file
-f, --no-flush Do not flush output stream after each file
-z, --init-with-zero Initialize CRC with 0x000…000 (default is 0xFFF…FFF)
-n, --negate-final Negate the final CRC result
-l, --append-length Append to the input its length for CRC computation
-t, --self-test Run integrated self-test and exit program

License

This work has been released under the CC0 1.0 Universal license.

For details, please refer to:
https://creativecommons.org/publicdomain/zero/1.0/legalcode