I have got one that doesn't crash
Just encrypt the file and use that as the key!
Come on these crashes are just mathematically inevitable, if you read the link to these 'practical attacks' in the OP :) and you read to the bottom you will see the statement:
'If data can be added to a file (software update or email message) so that the modified message is intelligible and matches the hash of the original message then the impact would be devastating. Things are nowhere near as serious as that.'
The crash will happen by the sheer definition of hashing (it wasn't originally intended for security). So yeah whilst this is probably a good thing to draw out new ideas, it is not exactly needed.


