crchack
crchack copied to clipboard
Reversing CRC for fun and profit
Usually it is beneficial to split CLI software into 2 layers: * a shared lib doing the stuff * a CLI to it The benefit is that the lib can...
Currently `-b 4:` for a long input (e.g., 1GB) is handled *non-lazily* by allocating a huge array to store all the input bits following the 4th byte. This is stupid....
The CRC computation is too slow for files >100MB. This can be improved a lot. 
CMake supports multiple toolchains.
Proposed behavior: * `-b 03FFFFC0@1024` selects 20 bits at position 1024 * `-b 80@30:40` selects 10 MSBs between positions 30 and 40 * `-b 2@0:-1:1` selects all bits except the...
The docs state that `out` is populated with the modified message but it is not: https://github.com/resilar/crchack/blob/7902c0541931b352c8df838e11acc9e558a0454d/forge.h#L31 The out argument is currently unused. I might be being overly pedantic since the...
I'm trying to calculate a 4 byte value to PREPEND to a 8192 byte data file so as to get a specified CRC32 value 0x224E16C3 . My reading of the...
Quoting myself from comment thread of issue #9 "Lazy `-b` evaluation" > I think we should consider deprecating offset switches `-o/-O` at some point because `-b` switches are now expressive...
Quines
Implement a feature to calculate CRC quines. For example: ```sh $ printf "\xcc\x4f\xbb\x6a" | ./crchack - cc4fbb6a $ printf "\xff\xff\xff\xff" | ./crchack - ffffffff $ printf 'foo\x81\xc8\x73\xa7bar' | ./crchack -...