by blurbleblurble · 7y ago · 0 comments
I don't know how feasible this actually is, but it made for an interesting sci-fi thought.
edit: Thanks for all of the enlightening replies!
Each SHA-256 hash has 2^(8 * 1024 - 256) = 10^2389 possible 1KB inputs.
So...perhaps it could be done, but the quantum computer would have programmed with a very good selection criteria.
The way compression algorithms get around that, is by abusing the fact that we rarely want to send around arbitrary data, real world data has lots of redundancy in it, so we can make algorithms where real world data gets mapped into compressed files smaller then they are (by finding the redundancies in the data), and purely random data gets mapped into files that are actually slightly longer than the data.