Esempio n. 1
0
        public static T GetDigest <T>(this IHashing <T> hashing, string text, Encoding encoding)
        {
            hashing.Init();
            var data = encoding.GetBytes(text);

            hashing.Write(data, 0, (uint)data.Length);
            return(hashing.GetDigest());
        }
Esempio n. 2
0
 public static T GetDigest <T>(this IHashing <T> hashing, params int[] values)
 {
     hashing.Init();
     hashing.Write(values);
     return(hashing.GetDigest());
 }