Password hash family

Argon2

The Password Hashing Competition winner: memory-hard hashing standardised in RFC 9106

safe 3 variants Password Hashing Competition winner; 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–2021
  1. Password Hashing Competition announced

    Password Hashing Competition
  2. 24 candidates submitted; nine finalists named in December

    Password Hashing Competition
  3. Argon2 wins the Password Hashing Competition

  4. Specified in RFC 9106

How it works

  1. Hash password, salt and parameters into a seed with BLAKE2b
  2. Fill memory blocks lane by lane from earlier blocks
  3. Repeat for the configured number of passes
  4. 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

Password storageDeriving encryption keys from passphrasesProof-of-work or cost functions requiring memory

Variants in NextSSL

3
AlgorithmTierSizes (bytes)StandardsAPI
Argon2id
argon2id
safe out 16–1024 · salt 16–64 RFC 9106 safe
Argon2d
argon2d
standard out 16–1024 · salt 16–64 RFC 9106 safe
Argon2i
argon2i
standard out 16–1024 · salt 16–64 RFC 9106 safe

Frequently asked questions

Which Argon2 variants does NextSSL include?

NextSSL registers 3 Argon2 variants: argon2id, argon2d, argon2i.

Families with similar names