2 ms·
FYI, - bcrypt can have passwords up to 72 bytes (depending on implementation) due to its nature of feeding password into a block cipher, and Blowfish having ma
by dchest 13y ago
FYI,
- bcrypt can have passwords up to 72 bytes (depending on implementation) due to its nature of feeding password into a block cipher, and Blowfish having max 448 bit keys but some implementations allowing 576 bits (see https://en.wikipedia.org/wiki/Blowfish_(cipher)#The_algorithm https://en.wikipedia.org/wiki/Blowfish_(cipher)#The_algorith...)
- scrypt accepts passwords of unlimited length, however the computational/memory cost doesn't depend on password length, as the first step in scrypt is expanding (or compressing) password and salt with 1-round PBKDF2, which is basically HMAC in counter mode.