“盐”有什么作用?在字符串到键(s2k)说明符中引用?
字符串到键 (s2k) 说明符中的“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.
但是盐没有定义,尽管它的含义似乎很清楚。
What does 'salt' refer to in string-to-key (s2k) specifier?
It appears to be a random number generator to shake things up, but I would like to know what 'salt' stands for?
For example it is written:
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.
But salt is not defined, although its meaning seems clear.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
来自维基百科:
盐只是一些用于提高系统安全性的位。它们有助于防止预计算字典攻击。
From Wikipedia:
A salt is just some bits that are used to increase the security of the system. They help prevent pre-computed dictionary attacks.
盐可以是任何一致的值。
可以是常量,也可以是用户 ID。如果两者都包含就更好了。
这用于防止预生成的彩虹表工作。
The salt can be any consistent value.
Either a constant, or the user ID. Better if it includes both.
This is used to prevent pre generated rainbow tables from working.
我认为您是在问这个术语的起源,而不是定义。
是时候进行一轮民间词源了! (直到有人给出真正的答案。)
我的猜测是,这是烹饪中的类比:盐是一种改进的添加剂。一点点就会有很长的路要走。
I think you're asking the origin of the term, not the definition.
Time for a round of folk etymology! (Until someone gives the real answer.)
My guess is that it is an analogy from cooking: the salt is an improving additive. And a little bit goes a long way.