password hashing

Storing a password as the output of a deliberately slow, salted hash function, so a stolen database does not reveal the passwords.

In more detail

Good password hashes such as scrypt and Argon2 are slow and memory hungry on purpose, so guessing at scale on graphics cards costs real money. To check a login you hash the candidate with the same salt and parameters and compare the results in constant time. Fast general-purpose hashes such as MD5 or plain SHA-256 are the wrong tool for passwords.

Related terms

Taught in

References