写了个md5加密的程序,结果和百度应用里给出的解密结果不一样。大神来看看这是为啥呗
public static string MD5(string toCryString)
{
//MD5CryptoServiceProvider hashmd5;
//hashmd5 = new MD5CryptoServiceProvider();
//return BitConverter.ToString(hashmd5.ComputeHash(Encoding.Default.GetBytes(toCryString))).Replace("-", "");
byte[] result = Encoding.Default.GetBytes(toCryString);
MD5 md5 = new MD5CryptoServiceProvider();
byte[] output = md5.ComputeHash(result);
return BitConverter.ToString(output).Replace("-", "");
}