在字符串到键(s2k)说明符中,“salt”指的是什么?
它看起来是一个随机数生成器,用来震撼一切,但我想知道'salt‘代表什么?
例如它是这样写的:
3.6.1.2. Salted S2K
This includes a "salt" value in the S2K specifier -- some arbitrary
data -- that gets hashed along with the passphrase string, to help
prevent dictionary attacks.
Octet 0: 0x01
Octet 1: hash algorithm
Octets 2-9: 8-octet salt value
Salted S2K is exactly like Simple S2K, except that the input to the
hash function(s) consists of the 8 octets of salt from the S2K
specifier, followed by the passphrase.但是盐并没有被定义,尽管它的含义似乎很清楚。
发布于 2010-05-17 05:31:44
在密码学中,salt由随机比特组成,用作密钥推导函数的输入之一。另一个输入通常是密码或口令短语。密钥导出函数的输出被存储为密码的加密版本。
盐只是一些用于增加系统安全性的比特。它们有助于预防pre-computed dictionary attacks。
发布于 2010-05-17 05:29:04
盐可以是任何一致的值。
可以是常量,也可以是用户ID。最好同时包含这两者。
这是为了防止预先生成的彩虹表起作用。
发布于 2010-05-17 07:14:50
https://stackoverflow.com/questions/2845548
复制相似问题