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()); }
public static T GetDigest <T>(this IHashing <T> hashing, params int[] values) { hashing.Init(); hashing.Write(values); return(hashing.GetDigest()); }