Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在另一个网站上听说做类似的事情是个坏主意:
$string = "hello"; sha1(hash("sha512", $string));
...就我而言,这是一个好主意!为什么不是?(我不太明白其他网站上的解释)
谢谢
多次散列没有错。在许多情况下,这实际上是一个好主意。
您粘贴的示例很糟糕,因为您使用 160 位哈希对 512 位哈希进行哈希处理。