ClrPlus.Core.Extensions.StringExtensions.MD5Hash C# (CSharp) Method

MD5Hash() public static method

Calculates the MD5 hash of a string. Additionally all the letters in the hash are in uppercase.
public static MD5Hash ( this input ) : string
input this a string to a calculate the hash for
return string
        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());
            }
        }