As I understand it, the best practice for generating salts is to use some cryptic formula (or even magic constant) stored in your source code.
I\'m working on a proj
Really salts just need to be unique for each entry. Even if the attacker can calculate what the salt is, it makes the rainbow table extremely difficult to create. This is because the salt is added to the password before it is hashed, so it effectively adds to the total number of entries the rainbow table must contain to have a list of all possible values for a password field.