2 ms·
Bcrypt uses 22 character salt. The output of your library's BcryptEncoder.encode(password) includes not only the password hash but information about the algori
by nommm-nommm 10y ago
Bcrypt uses 22 character salt.
The output of your library's BcryptEncoder.encode(password) includes not only the password hash but information about the algorithm and the salt. That's what you store in your database. That extra information tells the decode function how to decode later on.
See here:
http://stackoverflow.com/questions/6832445/how-can-bcrypt-have-built-in-salts http://stackoverflow.com/questions/6832445/how-can-bcrypt-ha...