Hashing

Password hashing

Password hashing functions turn low-entropy passwords into hashes or keys while deliberately consuming time and memory, so that an attacker who steals the hashes must spend comparable resources on every guess.

30 algorithms 20 families

The oldest schemes, such as Unix crypt and PBKDF2, rely only on iteration count, which GPUs and ASICs can parallelise cheaply. bcrypt added a costly key schedule with a small memory footprint. Memory-hard functions, starting with scrypt and continuing with Argon2, yescrypt and Balloon hashing, force each guess to use a large amount of memory, which raises the cost of specialised hardware far more than the cost for a legitimate server.

Every password hash must use a unique random salt so that identical passwords produce different hashes and precomputed tables are useless. Parameters must be tuned for current hardware and revisited over time.

Families

20
Argon2safe

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

3 variants · argon2d argon2i argon2id
PBKDF2standard

The iterated-HMAC password-based key derivation function from PKCS #5 and NIST SP 800-132

4 variants · pbkdf2 pbkdf2-hmac-sha1 pbkdf2-hmac-sha256 pbkdf2-hmac-sha512
scryptstandard

Colin Percival's memory-hard key derivation function, standardised in RFC 7914

1 variant · scrypt
yescryptstandard

An scrypt-derived memory-hard password hash, now the default in many Linux distributions

2 variants · yescrypt yescrypt-phc
Unix crypt formatslegacy

Classic modular-crypt password hashes: BSDi DES, md5crypt, sha256crypt and sha512crypt

4 variants · bsdicrypt md5crypt sha256crypt sha512crypt
bcryptlegacy

The Blowfish-based adaptive password hash, a long-standing default in web frameworks

1 variant · bcrypt
Balloon hashingunverified

A memory-hard password hash with provable bounds and data-independent access

1 variant · balloon
Battcrypt (PHC)unverified

Battcrypt (PHC): a Password Hashing Competition submission for password hashing

1 variant · battcrypt-phc
Catena (PHC)unverified

Catena (PHC): a Password Hashing Competition submission for password hashing

2 variants · catena-butterfly-phc catena-dragonfly-phc
Earworm (PHC)unverified

Earworm (PHC): a Password Hashing Competition submission for password hashing

1 variant · earworm-phc
Gambit (PHC)unverified

Gambit (PHC): a Password Hashing Competition submission for password hashing

1 variant · gambit-phc
Lanarea (PHC)unverified

Lanarea (PHC): a Password Hashing Competition submission for password hashing

1 variant · lanarea-phc
Lyra2 (PHC)unverified

Lyra2 (PHC): a Password Hashing Competition submission for password hashing

1 variant · lyra2-phc
Omegacrypt (PHC)unverified

Omegacrypt (PHC): a Password Hashing Competition submission for password hashing

1 variant · omegacrypt-phc
Parallel (PHC)unverified

Parallel (PHC): a Password Hashing Competition submission for password hashing

1 variant · parallel-phc
Pomelo (PHC)unverified

Pomelo (PHC): a Password Hashing Competition submission for password hashing

1 variant · pomelo-phc
Rig (PHC)unverified

Rig (PHC): a Password Hashing Competition submission for password hashing

1 variant · rig-phc
Schvrch (PHC)unverified

Schvrch (PHC): a Password Hashing Competition submission for password hashing

1 variant · schvrch-phc
Tortuga (PHC)unverified

Tortuga (PHC): a Password Hashing Competition submission for password hashing

1 variant · tortuga-phc
Yarn (PHC)unverified

Yarn (PHC): a Password Hashing Competition submission for password hashing

1 variant · yarn-phc