hmm....
sorry about the lack of formatting there. let me try again
String MD5String(String strToEncode) {
ASCIIEncoding objEncode = new ASCIIEncoding();
byte[] btToEncode = objEncode.GetBytes(strToEncode);
MD5 objMD5 = new MD5CryptoServiceProvider();
byte[] btHashed = objMD5.ComputeHash(btToEncode);
return BitConverter.ToString(btHashed);
}
--
Jason Brown
Microsoft GTSC, IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
"Jason Brown [MSFT]" <i-******@online.microsoft.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
try this
String MD5String(String strToEncode) {
ASCIIEncoding objEncode = new ASCIIEncoding();
byte[] btToEncode = objEncode.GetBytes(strToEncode);
MD5 objMD5 = new MD5CryptoServiceProvider();
byte[] btHashed = objMD5.ComputeHash(btToEncode);
return BitConverter.ToString(btHashed);
}-- Jason BrownMicrosoft GTSC, IISThis posting is provided "AS IS" with no
warranties, and confers no rights."daniel" <a9******@anet.net.tw> wrote in
message news:Om**************@TK2MSFTNGP09.phx.gbl... the result of php language is below:
md5('don123494/1/24') = 5074456da7a19c2438cdf0e23728aca2
how can i get the same result as above in md5 of .net language