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 salted
OWASP minimum for Argon2id: 19 MiB of memory, 2 passes, 1 thread

Related terms

Taught in

References