3 ms·
In cryptographic context there are very different hash functions: * Password hashes including password based key derivation functions. These are salted and del
by CodesInChaos 5y ago
In cryptographic context there are very different hash functions:
* Password hashes including password based key derivation functions. These are salted and deliberately expensive to compute. For example bcrypt, scrypt or argon2. Salted sha2 is not suitable for this purpose.
* collision resistant hash functions like SHA2/3. They're designed to be fast, but can't keep up with non cryptographic hashes/checksums
* keyed hashes. This includes pseudo-random-functions (like HMAC) and MACs (weaker requirements than PRFs)
Plus people sometimes use plain collision resistant hashes when they actually need a MAC or digital signature