.NET Framework提供了相应的功能,不必自己写算法:
System.Security.Cryptography.MD5

解决方案 »

  1.   

    是的,在System.Security.Cryptography.MD5类中有相应的方法。关于代码,我有object pascal(delphi)的。
      

  2.   

    byte[] data = new byte[DATA_SIZE];// This is one implementation of the abstract class MD5.
    MD5 md5 = new MD5CryptoServiceProvider();byte[] result = md5.ComputeHash(data);
    自己写c#的md5实现算法似乎没有必要,.net Framework已经提供了嘛。
      

  3.   

    不是md5的算法,是用于邮件服务器登陆的数字认证,当中用到md5算法,参见rfc2831
    不过我已经解决