|
|
|
|
|
by just2n
4824 days ago
|
|
I didn't mean to imply that you'd just store the hash the client comes up with. That's idiotic, of course. Not everyone uses SSL, even though they should, and it's not always secure, and even with the use of SSL, it seems that there would be a potential length attack that could be employed to effectively guess a user's password length. So in all cases, IMO, it makes more sense to be receiving a fixed-length thing that is fairly insensitive to attack in itself. So perhaps a user has 2 salts associated with their account, per password: an auth salt and a storage salt. Then an auth looks something like this: hash(saltFromServer + hash(password))
And then the server would do hash(user.salt + clientHash)
I'm not sure, but this seems reasonable to me. |
|