[HN Gopher] Forcing a file's CRC to any value (2018)
___________________________________________________________________
Forcing a file's CRC to any value (2018)
Author : jstrieb
Score : 12 points
Date : 2021-11-23 20:14 UTC (2 hours ago)
(HTM) web link (www.nayuki.io)
(TXT) w3m dump (www.nayuki.io)
| shric wrote:
| What would be really clever is if it could alter, say, source
| code or natural language prose of sufficient length to force a
| specific CRC preserving the semantics of the program/prose e.g.
| by reordering or changing words and/or identifiers. (changing 4
| bytes to arbitrary values in a comment is against the spirit of
| this)
| pxx wrote:
| Here's a repo that does something a little more generic that
| you can adapt for that.
|
| https://github.com/madler/spoof/
|
| (you can naively use this to flip case where the case is not
| semantically important, but you can also extend this as needed)
___________________________________________________________________
(page generated 2021-11-23 23:02 UTC)