MD5CryptoServiceProvider MD5 = new MD5CryptoServiceProvider();
var Sign = BitConverter.ToString(MD5.ComputeHash(Encoding.GetEncoding("utf-8").GetBytes(result))).Replace("-", "").ToLower();
将编码从gb2313改为utf-8。
时间: 2024-10-25 04:37:03
MD5CryptoServiceProvider MD5 = new MD5CryptoServiceProvider();
var Sign = BitConverter.ToString(MD5.ComputeHash(Encoding.GetEncoding("utf-8").GetBytes(result))).Replace("-", "").ToLower();
将编码从gb2313改为utf-8。