是否有用于在C#中实现MD5的实用程序(Visual Studio 2008) [英] Is there any Utility for Implementing MD5 in C# (Visual Studio 2008)

查看:123
本文介绍了是否有用于在C#中实现MD5的实用程序(Visual Studio 2008)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我正在用C#开发MD5(消息摘要算法).
请让我知道VS2008中是否有可用的MD5实用程序或库.

谢谢,
Srikanth

Hi All,


I am developing MD5(Message Digest Algorithm) in C#.
Please let me know if there are any MD5 utilities or libraries already available in VS2008.

Thanks,
Srikanth

推荐答案

重要警告!



除了我的第一个答案外,我还应该添加在其他答案中经常重复出现的旧的良好警告:发现MD5算法非常容易受到攻击!如果出于安全目的,请勿使用!
(请参见 http://en.wikipedia.org/wiki/MD5 [ http://en.wikipedia.org/wiki/SHA-2 [ ^ ].

您可以使用.NET中可用的SHA-256函数,请参见 http://msdn .microsoft.com/en-us/library/system.security.cryptography.sha256.aspx [

Important warning!



In addition to my first answer, I should also add the old good warning often repeated in other Answers: MD5 algorithm is found to be very vulnerable! Don''t use if for security purposes!
(See http://en.wikipedia.org/wiki/MD5[^].)

If can still be used if the purpose in not related to security.

MD5 can be replaced with "SHA" family of similar cryptographic hash functions, see http://en.wikipedia.org/wiki/SHA-2[^].

You can use SHA-256 function available in .NET, see http://msdn.microsoft.com/en-us/library/system.security.cryptography.sha256.aspx[^].

—SA


为什么要实现一种已知的破损"(读取:非常弱)加密算法?
Why would you want to implement a known "broken" (read: very weak) encryption algorithm?


哦,是的:请参见类System.Security.Cryptography.MD5.


这篇关于是否有用于在C#中实现MD5的实用程序(Visual Studio 2008)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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