Re: store salt in database
- From: "amygdala" <noreply@xxxxxxxxxxx>
- Date: Thu, 13 Jul 2006 08:26:39 +0200
"Paul Rubin" <http://phr.cx@xxxxxxxxxxxxxx> schreef in bericht
news:7xzmfeyrb4.fsf@xxxxxxxxxxxxxxxxxxxxxx
"amygdala" <noreply@xxxxxxxxxxx> writes:
Quite a few articles on the web argue that each individual user should be
assigned a salt to hash their password with. But how would one remember
this
salt? If I was to put these salts into the records of their respective
users, and the database is compromised, the use of such individual salts
would be pointless, since a hacker knows which salt belongs to which
user,
no?
Users never have to think about the salt. The application generates a
random salt for each user, and stores it in the database (unencrypted)
as part of the user record. That is, setting a user's password works
like this:
password = <get password from user>
salt = <generate a random string>
hashed = hash_function(salt + password)
<store (salt) and (hashed) in user record>
But what then is the surplus value of the salt if it is stored in the record
of the user? To my understanding the salt is used to make it difficult to
apply 'brute force' to decypher passwords, if the database is compromised by
a hacker, right? But if a hacker knows the salt, cause it is stored in the
same record next to the hashed salt+password, applying 'brute force' to it
would just as 'easy' again, wouldn't it?
.
- Follow-Ups:
- Re: store salt in database
- From: amygdala
- Re: store salt in database
- From: Jan Kesten
- Re: store salt in database
- From: Paul Rubin
- Re: store salt in database
- From: bryanjugglercryptographer
- Re: store salt in database
- From: Damien
- Re: store salt in database
- References:
- store salt in database
- From: amygdala
- Re: store salt in database
- From: Paul Rubin
- store salt in database
- Prev by Date: Re: store salt in database
- Next by Date: Re: Wikipedia "Cryptography" reaches Featured Article status
- Previous by thread: Re: store salt in database
- Next by thread: Re: store salt in database
- Index(es):
Relevant Pages
|
|