<分区>
我读了 man crypt 并且不明白下面的短语是什么意思:salt 是从集合 [a-zA-Z0-9./] 中选择的两个字符的字符串。该字符串用于以 4096 种不同方式之一扰乱算法。
<分区>
我读了 man crypt 并且不明白下面的短语是什么意思:salt 是从集合 [a-zA-Z0-9./] 中选择的两个字符的字符串。该字符串用于以 4096 种不同方式之一扰乱算法。
最佳答案
The primary function of salts is to defend against dictionary attacks versus a list of password hashes and against pre-computed rainbow table attacks.
基本上,向散列中添加一点未知数据可防止攻击者预先计算给定字典的所有散列,然后仅在表中查找未散列的值。
关于c - salt 如何作用于 c 中的 crypt 函数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25272722/