public static string MD5Hash(this string input) { using (var hasher = MD5.Create()) { return hasher.ComputeHash(Encoding.Unicode.GetBytes(input)).Aggregate(String.Empty, (current, b) => current + b.ToString("x2").ToUpper()); } }