Today it was posited to me that
- sha256 has a domain large enough to never encounter a collision and
- that because it is such a large domain and given that a reverse function was created for it, that it would make current compression obsolete. Large files could be created by reversing a sha256.
I understand that hashes are one way, deterministic functions but if there were a reversible hash would this hold true, or is the potential of collision to great to ever really create unique hash?
n
bits of output, there are only2^n
possible outputs. Therefore, after2^n+1
inputs, at least one output can no longer be uniquely matched to its input.