Salt Generation and open source software

后端 未结 6 1892
孤独总比滥情好
孤独总比滥情好 2020-11-22 07:37

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

6条回答
  •  长情又很酷
    2020-11-22 08:35

    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.

提交回复
热议问题