gpt4 book ai didi

salt - 'salt' 在字符串到键 (s2k) 说明符中指什么?

转载 作者:行者123 更新时间:2023-12-02 08:12:21 25 4
gpt4 key购买 nike

“salt”在字符串到键 (s2k) 说明符中指什么?

它似乎是一个随机数生成器,可以改变事物,但我想知道“盐”代表什么?

例如这样写:

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.

但是盐没有定义,尽管它的含义似乎很清楚。

最佳答案

来自Wikipedia :

In cryptography, a salt comprises of random bits that are used as one of the inputs to a key derivation function. The other input is usually a password or passphrase. The output of the key derivation function is stored as the encrypted version of the password.

盐只是一些用于提高系统安全性的位。它们有助于预防pre-computed dictionary attacks .

关于salt - 'salt' 在字符串到键 (s2k) 说明符中指什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2845548/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com