|
|
|
|
|
by CWuestefeld
3666 days ago
|
|
Salt is a large random string unique per user, not per password. Of course it's per user. But "large" makes some sense. My current implementation has maybe 20-22 bits of uniqueness in the salt, certainly less than 16 bytes. I don't think 16 bytes is necessary even as insurance against the future. Rainbow tables are still expensive to build. On the other hand, maybe to build just a small table addressing the stupidest passwords ("password","12345678",etc.) it's worth making it more difficult. |
|
What I meant is that it shouldn't be per user, it should be per password. If a user changes his password, he should get a new salt.