NuGet.CryptoHashProvider.VerifyHash C# (CSharp) Méthode

VerifyHash() public méthode

public VerifyHash ( byte data, byte hash ) : bool
data byte
hash byte
Résultat bool
        public bool VerifyHash(byte[] data, byte[] hash)
        {
            byte[] dataHash = CalculateHash(data);
            return Enumerable.SequenceEqual(dataHash, hash);
        }