该算法preferred散列密码的C#? [英] which algorithm preferred for hashing passwords C#?

查看:167
本文介绍了该算法preferred散列密码的C#?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:结果
  <一href=\"http://stackoverflow.com/questions/116684/what-algorithm-should-i-use-to-hash-passwords-into-my-database\">What算法我应该使用哈希密码到我的数据库?

我是新来这个散列密码。我读了哈希+盐使密码很安全。但仍然困惑的哈希算法,我应该使用,因为很多像。

I am new to this hashing on password. I read the hashing + salt make passwords really safe. But still confused which hashing algorithm should I use as there are many like.

MD5CryptoServiceProvider
SHA1Managed
SHA256Managed 等。

我如何决定哪一个是为我好,或者全部都是平等的。我可以盲目去接人?

How can I decide which one is good for me or all are equal. Can I pick up anyone blindly?

推荐答案

MD5

在1996年,一个缺陷与MD5的设计中,而这是
  没有明确致命的弱点,密码学家开始的建议
  使用的其它算法,如SHA-1的这已被发现
  是脆弱的也是如此。

In 1996, a flaw was found with the design of MD5, and while it was not a clearly fatal weakness, cryptographers began recommending the use of other algorithms, such as SHA-1—which has since been found to be vulnerable as well.

SHA1

在2005年,密码专家发现了SHA-1的攻击提示
  算法可能不适合继续使用足够安全的。

In 2005, cryptanalysts found attacks on SHA-1 suggesting that the algorithm might not be secure enough for ongoing use

SHA2 的哪个SHA256是一类不具有已知漏洞的此刻的写作。

SHA2 which SHA256 is a type of does not have a known vulnerability as of the moment of writing.

这篇关于该算法preferred散列密码的C#?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆