예제 #1
0
 public static string Hash(string s)
 {
     return(Md5Hash.Compute(s).ToHexString());
 }
예제 #2
0
        public static T Compute <T>(string data, Func <byte[], T> output)
        {
            var bytes = Md5Hash.Compute(data);

            return(output(bytes));
        }