Huh? If you're "encrypting" using SHA, I've got some bad news about those backups of yours.
Huh? If you're "encrypting" using SHA, I've got some bad news about those backups of yours.
Most people in the room will still have unique birthdays even if one pair share theirs.
From my numerical experiments (I hope I didn't mess up...) using the random oracle model, the probability that a given key is collision-free is 99.6% if the input is one byte shorter than hash, 1/e if input is same size as hash and 6.6e-112 if the input is one byte longer than hash.
And this holds basically irrespective of key size.
Salsa20 & ChaCha20 cores are hash functions (though not collision-resistant compression functions since it's not needed for their design goal and would be slower) run in CTR mode.[1]
This is the best, most delicious, type of pedantry friend!
(Just some more pedantry, friend.)
/s
And if you want really, provably unbreakable encryption, there is still OTP. But then you'd need a key, that is as long as the data you want to encrypt.