2016-03-01 73 views
1

散列密码的这些方法中哪一个最安全,最难找到散列冲突?通过SHA1散列密码与MD5,SHA1和MD5

  1. MD5只
  2. SHA1只有
  3. MD5比SHA1
+2

所有不再被认为是安全的,请使用SHA-2等SHA-2方法。 SHA-3的实现仍然很少见。 – zaph

+2

[如何安全地哈希密码?](http://security.stackexchange.com/q/211/45523) –

回答

1

这些不应被用于密码哈希,他们已经被证明是不安全的:

从维基百科MD5: The security of the MD5 has been severely compromised, with its weaknesses having been exploited in the field, most infamously by the Flame malware in 2012. The CMU Software Engineering Institute considers MD5 essentially "cryptographically broken and unsuitable for further use".

SHA1来自维基百科:

SHA-1 is no longer considered secure against well-funded opponents. In 2005, cryptanalysts found attacks on SHA-1 suggesting that the algorithm might not be secure enough for ongoing use,[3] and since 2010 many organizations have recommended its replacement by SHA-2 or SHA-3.[4][5][6] Microsoft,[7] Google[8] and Mozilla[9][10][11] have all announced that their respective browsers will stop accepting SHA-1 SSL certificates by 2017.

更安全散列算法存在诸如SHA-2或3,其应该被考虑。

+1

使用适当的腌制技术比使用正确的风味进行单向哈希安全密码更重要。彩虹表对SHA-3的效率与MD5相当。 –

+0

完全同意:) –

+0

Aaand“资金充足的对手”的定义刚刚降低了几个数量级,使其成为“中等资助的对手”:https://security.googleblog.com/2017/02/announcing-第一-SHA1-collision.html – Piskvor