using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; using System.Text; namespace Muchinfo.PC.Common.Helpers { public class MD5Helper { public static string Encrypt(string source) { byte[] result = Encoding.UTF8.GetBytes(source); MD5 md5 = new MD5CryptoServiceProvider(); byte[] output = md5.ComputeHash(result); return BitConverter.ToString(output).Replace("-", ""); } } }