private string CalculateMD5(string str) { using (var md5 = MD5.Create()) { var bytes = md5.ComputeHash(Encoding.UTF8.GetBytes(str)); return BitConverter.ToString(bytes).ToLower().Replace("-", ""); } }
private string CalculateMD5(string str) { using (var md5 = MD5.Create()) { var bytes = md5.ComputeHash(Encoding.UTF8.GetBytes(str)); return BitConverter.ToString(bytes).ToLower().Replace("-", ""); } }