Security foundations, topic 5 of 70
Hashing
A hash turns data into a fixed-size fingerprint that cannot be reversed. SHA-256 checks integrity: an image's digest, a file's checksum, a signature's input.
Passwords need something else: a hash that is deliberately slow and salted, such as Argon2id, scrypt or bcrypt, so that a stolen database cannot be cracked quickly. A fast hash such as SHA-256 or, worse, MD5 is the wrong tool for passwords.
On Opsfolk
Nothing of ours for this topic yet: an article is on its way.
Elsewhere
- Password Storage Cheat Sheet, OWASPOfficial
- Hash functions, NISTOfficial