Argon2
The Password Hashing Competition winner: memory-hard hashing standardised in RFC 9106
Overview
Argon2 is a memory-hard password hashing and key derivation function designed at the University of Luxembourg. It won the Password Hashing Competition in 2015, is standardised in RFC 9106, and is the recommended choice for new password storage.
Argon2 fills a large memory array of 1 KiB blocks, each computed from previous blocks through a compression function based on the BLAKE2b round. Memory is organised into lanes that can be filled in parallel. After several passes over memory, the final blocks are combined and hashed with BLAKE2b to produce the output. Cost is set by three parameters: memory size, number of passes and degree of parallelism.
NextSSL includes all three variants. Argon2d picks earlier blocks based on data, which maximises resistance to GPU cracking but leaks timing information. Argon2i uses data-independent addressing, which resists side channels. Argon2id, the RFC 9106 recommendation, uses data-independent addressing for the first half pass and data-dependent addressing thereafter. Argon2id is the default choice.
History
2013–2021Password Hashing Competition announced
Password Hashing Competition24 candidates submitted; nine finalists named in December
Password Hashing CompetitionArgon2 wins the Password Hashing Competition
Specified in RFC 9106
How it works
- Hash password, salt and parameters into a seed with BLAKE2b
- Fill memory blocks lane by lane from earlier blocks
- Repeat for the configured number of passes
- XOR the last block of each lane and hash to the output length
Security notes
Argon2id is considered secure when parameters are set appropriately; RFC 9106 gives recommended settings such as 2 GiB with one pass, or 64 MiB with three passes for constrained environments. Argon2i with few passes has known time–memory trade-off attacks, so Argon2id is preferred.
Typical uses
Variants in NextSSL
3Frequently asked questions
Which Argon2 variants does NextSSL include?
NextSSL registers 3 Argon2 variants: argon2id, argon2d, argon2i.
Families with similar names
Other password hashing
All 30Related
A fast, secure successor to BLAKE with built-in keying, salting and tree hashing
BLAKE2A fast, secure successor to BLAKE with built-in keying, salting and tree hashing
bcryptThe Blowfish-based adaptive password hash, a long-standing default in web frameworks
PBKDF2The iterated-HMAC password-based key derivation function from PKCS #5 and NIST SP 800-132
scryptColin Percival's memory-hard key derivation function, standardised in RFC 7914
yescryptAn scrypt-derived memory-hard password hash, now the default in many Linux distributions