by mathgladiator · 15y ago · 0 comments
I give it both a static prefix and a configurable suffix.
I once had a system that used their login as part of the salt, but that introduced major support issues.
The salt serves two functions: Make rainbow table attacks more difficult
Obscuring cases where two users have the same password. If two users both use "blah7$monkey" as their password and you don't use a salt, they will hash to the same value.
If I steal your password database and I want to compromise one account, a salt offers no protection. Hash algo and password strength are what matter.