public static byte[] ComputeSha1(byte[] message) { #if NETSTANDARD1_0 var hasher = new Sha1Implementation(); return(hasher.ComputeHash(message)); #else using (HashAlgorithm provider = SHA1.Create()) { byte[] hash = provider.ComputeHash(message); return(hash); } #endif }
public TestIdProvider() { hasher = new Sha1Implementation(); }