which algorithm preferred for hashing passwords C#?(哪种算法更适合散列密码 C#?)
问题描述
<块引用>可能重复:
我应该使用什么算法将密码散列到我的数据库?
我对密码哈希不熟悉.我读了哈希+盐使密码非常安全.但是我仍然很困惑我应该使用哪种哈希算法,因为有很多类似的.
MD5CryptoServiceProviderSHA1ManagedSHA256Managed等
我怎样才能决定哪一个对我有好处或所有人都是平等的.我可以盲目接人吗?
MD5:p><块引用>
在 1996 年,发现 MD5 的设计存在缺陷,而在不是一个明显致命的弱点,密码学家开始推荐使用其他算法,例如 SHA-1,后来发现也很脆弱.
SHA1:
<块引用>2005 年,密码分析员发现对 SHA-1 的攻击表明算法可能不够安全,无法持续使用
SHA2 SHA256 是一种类型,截至写作时刻.
Possible Duplicate:
What algorithm should I use to hash passwords into my database?
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
SHA256Managedetc.
How can I decide which one is good for me or all are equal. Can I pick up anyone blindly?
MD5:
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:
In 2005, cryptanalysts found attacks on SHA-1 suggesting that the algorithm might not be secure enough for ongoing use
SHA2 which SHA256 is a type of does not have a known vulnerability as of the moment of writing.
这篇关于哪种算法更适合散列密码 C#?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:哪种算法更适合散列密码 C#?
基础教程推荐
- JSON.NET 中基于属性的类型解析 2022-01-01
- 将事件 TextChanged 分配给表单中的所有文本框 2022-01-01
- 首先创建代码,多对多,关联表中的附加字段 2022-01-01
- 全局 ASAX - 获取服务器名称 2022-01-01
- 错误“此流不支持搜索操作"在 C# 中 2022-01-01
- 是否可以在 asp classic 和 asp.net 之间共享会话状态 2022-01-01
- 从 VS 2017 .NET Core 项目的发布目录中排除文件 2022-01-01
- 如何动态获取文本框中datagridview列的总和 2022-01-01
- 经典 Asp 中的 ResolveUrl/Url.Content 等效项 2022-01-01
- 在 VS2010 中的 Post Build 事件中将 bin 文件复制到物 2022-01-01
