Argon2
A modern password hashing function that is deliberately slow and needs a lot of memory for every guess, which makes stolen password hashes very expensive to crack.
In more detail
Argon2 won the Password Hashing Competition in 2015 and is standardised in RFC 9106. It comes in three variants, and Argon2id, which mixes the other two, is the one to use for passwords. You tune how much memory it uses, how many passes it makes and how many threads it runs, so you can raise the cost as hardware gets faster. Like any password hash, it must be used with a unique random salt per password.
Examples
Passwords: Argon2id, scrypt, bcrypt or PBKDF2, always saltedOWASP minimum for Argon2id: 19 MiB of memory, 2 passes, 1 threadRelated terms
- password hashing — Storing a password as the output of a deliberately slow, salted hash function, so a stolen database does not reveal the passwords.
- salt — An extra value mixed into data before hashing so that otherwise identical inputs produce different hashes.
- memory-hard function — A function that cannot be computed quickly without using a large amount of memory, which makes mass guessing on specialised hardware expensive.
- scrypt — A memory-hard password hashing function that is slow and needs lots of memory, so guessing passwords in bulk is expensive.
Taught in
- Cryptographic Hashing: SHA-256, SHA-3 & Passwords — Cybersecurity Fundamentals, GRC & Cryptography
- Authentication Versus Authorisation — Application Security & Threat Modeling for Engineers