【发布时间】:2012-12-13 09:46:06
【问题描述】:
我已经读过将要使用的盐应该与散列密码具有相同的长度,这背后的原因是什么?它会增加密码保护吗? 我读过 Here:
为了使攻击者无法为每个可能的盐创建查找表,盐必须很长。一个好的经验法则是使用与散列函数的输出大小相同的盐。比如SHA256的输出是256位(32字节),所以salt至少应该是32个随机字节。
【问题讨论】:
-
你在哪里读到的?
-
To make it impossible for an attacker to create a lookup table for every possible salt, the salt must be long.这就是答案 -
你的问题最适合Security.SE。
-
@jweyrich:或crypto.SE。
-
我不知道有Security.SE这样的东西,如果有请移步问题