一個MD5文件如何創建在C#中的MD5?我想調用txt文件並將c#中的md5調用到txt文件中以對其進行哈希處理。如何創建在C#
public static string MD5Hash(string text)
{
System.Security.Cryptography.MD5 md5 = new System.Security.Cryptography.MD5CryptoServiceProvider();
return System.Text.RegularExpressions.Regex.Replace(BitConverter.ToString(md5.ComputeHash(ASCIIEncoding.Default.GetBytes(text))), 「-」, 「」);
}
「急需它」不會讓我們更快地幫助你。無論如何,你已經知道如何計算散列,那麼問題是什麼? – Marlon 2011-05-31 02:49:59
我的問題是如何寫在C#中,並通過調用一個函數來調用這個文件的MD5散列數據的TXT文件 – CutexBabies 2011-05-31 02:59:42