|
|
|
|
|
by dchest
3665 days ago
|
|
Yes, they usually produce a string that looks something like "salt||hash". (Salt is a non-secret value.) This result of bcrypt: $2a$10$N9qo8uLOickgx2ZMRZoMyeIjZAgcfl7p92ldGxad68LJZdL17lhWy
|/ \| \____________________/\_____________________________/
| | salt hash
| cost
|
algorithm,
version
You store this string in the database. |
|
Most people seem to think, and myself included when I was new-to-it, that storing all those things together would compromise the security. The point of the hash is that it is impossible (almost) to get to the hash without the user's password, and there is no way to get to the password with the entire string you posted.