yescrypt
An scrypt-derived memory-hard password hash, now the default in many Linux distributions
Overview
yescrypt is a password hashing scheme by Alexander Peslyak (Solar Designer) that extends scrypt. It received special recognition in the Password Hashing Competition and has become the default password hash in /etc/shadow on several major Linux distributions.
yescrypt keeps scrypt's overall structure and remains scrypt-compatible with certain flags, but replaces the BlockMix core with pwxform, a function that performs small random-access lookups into S-boxes held in fast memory. This makes attacks on GPUs and other parallel hardware more expensive because they must replicate both large memory and fast small lookups. Optional features include pre-hashing with a large ROM and hash upgrades without the original password.
NextSSL implements yescrypt with the YESCRYPT_DEFAULTS flags, the configuration used by libxcrypt in modular-crypt $y$ hashes. Hashes in this format begin with '$y$' and include encoded parameters and salt, so they can be stored directly in /etc/shadow and verified by any compatible libxcrypt build. Debian, Fedora and Ubuntu moved to yescrypt as the default in recent releases.
History
2013–2015Password Hashing Competition announced
Password Hashing Competitionyescrypt published by Alexander Peslyak (Solar Designer)
24 candidates submitted; nine finalists named in December
Password Hashing CompetitionReceived special recognition in the Password Hashing Competition
Security notes
No weaknesses in yescrypt are known. Like scrypt, it uses data-dependent memory access, which can leak through cache timing on shared hardware. Its specification is a single implementation rather than an RFC.
Typical uses
Variants in NextSSL
2| Algorithm | Tier | Sizes (bytes) | Standards | API |
|---|---|---|---|---|
| yescrypt yescrypt |
standard | out 16–1024 · salt 0–64 | yescrypt (PHC finalist; Peslyak), YESCRYPT_DEFAULTS flavour | safe |
| yescrypt-PHC yescrypt-phc |
unverified | out 16–1024 · salt 0–64 | Password Hashing Competition submission (2014-2015), PH… | root |
Frequently asked questions
Which yescrypt variants does NextSSL include?
NextSSL registers 2 yescrypt variants: yescrypt, yescrypt-phc.