corkami / collisions

Hash collisions and exploitations
3.08k stars 185 forks source link

Strategy: hash the output of a quine #9

Closed jimukgb closed 1 year ago

jimukgb commented 2 years ago

A Quine is a program that prints its own source code. Therefore, a quine can be modified to print the hash of its source code, rather than the source code itself and as such it will also be a hashquine. That should be added under the Self-Check paragraph. Similar to Self-Check, it doesn't require any cryptographic attack on the underlying hash function itself. It also requires the file format to be an executable.

angea commented 1 year ago

Yes. Self-check can be binary executables too.