2012-04-13 02:49:53 -07:00
|
|
|
crc32
|
2012-04-13 03:18:52 -07:00
|
|
|
=====
|
2012-04-13 02:49:53 -07:00
|
|
|
|
2012-08-04 05:16:03 -07:00
|
|
|
It computes [crc32s,][crc] and what of it?
|
2012-04-13 02:49:53 -07:00
|
|
|
|
2012-04-13 03:18:52 -07:00
|
|
|
[crc]: http://en.wikipedia.org/wiki/Cyclic_redundancy_check
|
2012-04-13 02:49:53 -07:00
|
|
|
|
2012-04-13 12:54:53 -07:00
|
|
|
Usage
|
2012-04-13 03:18:52 -07:00
|
|
|
----
|
2012-08-04 05:16:03 -07:00
|
|
|
```
|
2012-08-04 09:15:06 -07:00
|
|
|
crc32 - a 32-bit cyclic rendundancy check calculator
|
|
|
|
|
|
|
|
<files...> open files as inputs
|
|
|
|
-h display this text
|
|
|
|
-s <n> start cycle with n (default: 0xFFFFFFFF)
|
|
|
|
-p <n> use n as the crc divisor (default: 0x04C11DB7)
|
|
|
|
-e use big endian calculations
|
|
|
|
-b output as binary
|
|
|
|
-x NOT the output
|
|
|
|
-r reverse output's bits
|
|
|
|
|
|
|
|
numbers <n> may be entered as hexadecimal or octal with prefixes
|
2012-08-04 05:16:03 -07:00
|
|
|
```
|
2012-04-13 02:49:53 -07:00
|
|
|
|
|
|
|
Notes
|
2012-04-13 03:18:52 -07:00
|
|
|
-----
|
2012-04-13 02:49:53 -07:00
|
|
|
|
2012-04-13 03:18:52 -07:00
|
|
|
* Does not pad input.
|
2012-08-04 05:16:03 -07:00
|
|
|
* Big endian calculations are somewhat untested.
|
|
|
|
|
2013-06-04 13:16:24 -07:00
|
|
|
## [Smaller Still](https://gist.github.com/notwa/5689243)
|