Are you experiencing the MD5 code mismatch, even though you are using the same string and key in Php and dot net? Of course it does... Since we need to convert the string + key into ASCII bites. You can use the below code in C#.Net to match the MD5 code in php.
var strKey = "********";
var strValue = "abcd";
byte[] asciiBytes = ASCIIEncoding.ASCII.GetBytes(strValue + strKey);
byte[] hashedBytes = MD5CryptoServiceProvider.Create().ComputeHash(asciiBytes);
string hashedString = BitConverter.ToString(hashedBytes).Replace("-", "").ToLower();
This comment has been removed by a blog administrator.
ReplyDelete