|
|
|
|
|
by copsarebastards
3971 days ago
|
|
You're being downvoted because despite the "wealth of other content online about using cryptographic hashes for password storage", you haven't actually read enough of it to know that neither SHA3 nor BLAKE are appropriate for password storage. Neither is a key stretching function. Ignorance isn't a sin, but unwarranted overconfidence is. SHA3 and BLAKE are cryptographic hash functions, but they are fast collision resistant hash functions, NOT key stretching functions. They're primitives used in the construction of other cryptographic tools. Some cases where you might use a fast collision-resistant hash: * Timing-attack-resistant string comparison: if you're comparing API keys, you should hash them both first to prevent an attacker from guessing the keys a character at a time. * HMAC (look it up). * One can implement key stretching functions by applying fast collision-resistant hashes multiple times. * Signing (one can hash a message and sign the hash, which provides as much security as signing the message itself). * Fingerprinting (a fast hash of a public key can be used as shorthand to verify public key ownership without having to read off the entire key). * Addressing (Bitcoin uses a fast hash of a public key as an address). |
|
Maybe my "wealth of other content online" comment pissed a few people off - but equally I was pissed off that my original comment was downvoted so heavily with a few comments that weren't entirely accurate in response (I've often said the negative rep on HN gets over used and often causes more arguments - but that's another topic). Anyhow, I've removed my offending comment now and glad to see that the quality of responses have improved :)