2 ms·
It always pains me when I see people use cryptographic hashes (such as MD5 or SHA) in situations where they just need a hash with good mixing and avalanche beha
by tripzilch 13y ago
It always pains me when I see people use cryptographic hashes (such as MD5 or SHA) in situations where they just need a hash with good mixing and avalanche behaviour.
Cryptographic hashes may perform to good quality, but they are a zillion times slower. And obviously they are not guaranteed to be reversible.
Elsewhere in this discussion are some good links to fast, non-cryptographic hashing functions (very cool, I hadn't heard about SipHash before).
- vicaya 13y agoSipHash is a cryptographic hash function (more accurate a MAC). It's designed like one and behaves like one. SipHash is significant in that it demonstrates that there is no reason to use a non-cryptographic hashing function for general purpose hashing these days.