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#?
基础教程推荐
- C# 从 List<List<int>> 中删除重 2022-01-01
- Moq It.Is<>不匹配 2022-01-01
- WPF 模态进度窗口 2022-01-01
- 当值可以是对象或空数组时反序列化 JSON 2022-01-01
- 如何使用 .Net 检查 Active Directory 服务器是否已启动并正在运行? 2022-01-01
- Azure Functions:CosmosDBTrigger 未在 Visual Studio 中触发 2022-01-01
- 我应该在后面的代码中直接使用 Linq To SQL 还是使 2022-01-01
- 禁止输入少量字符,例如'<'、'&a 2022-01-01
- .NET SerialPort DataReceived 事件未触发 2022-01-01
- 如果有人提交恶意软件Nuget包怎么办? 2022-01-01
