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.
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
20The Password Hashing Competition winner: memory-hard hashing standardised in RFC 9106
The iterated-HMAC password-based key derivation function from PKCS #5 and NIST SP 800-132
Colin Percival's memory-hard key derivation function, standardised in RFC 7914
An scrypt-derived memory-hard password hash, now the default in many Linux distributions
Classic modular-crypt password hashes: BSDi DES, md5crypt, sha256crypt and sha512crypt
The Blowfish-based adaptive password hash, a long-standing default in web frameworks
A memory-hard password hash with provable bounds and data-independent access
Battcrypt (PHC): a Password Hashing Competition submission for password hashing
Catena (PHC): a Password Hashing Competition submission for password hashing
Earworm (PHC): a Password Hashing Competition submission for password hashing
Gambit (PHC): a Password Hashing Competition submission for password hashing
Lanarea (PHC): a Password Hashing Competition submission for password hashing
Lyra2 (PHC): a Password Hashing Competition submission for password hashing
Omegacrypt (PHC): a Password Hashing Competition submission for password hashing
Parallel (PHC): a Password Hashing Competition submission for password hashing
Pomelo (PHC): a Password Hashing Competition submission for password hashing
Rig (PHC): a Password Hashing Competition submission for password hashing
Schvrch (PHC): a Password Hashing Competition submission for password hashing
Tortuga (PHC): a Password Hashing Competition submission for password hashing
Yarn (PHC): a Password Hashing Competition submission for password hashing