Пример #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());
        }
Пример #2
0
 public static T GetDigest <T>(this IHashing <T> hashing, params int[] values)
 {
     hashing.Init();
     hashing.Write(values);
     return(hashing.GetDigest());
 }