C# Class NuGet.CryptoHashProvider

Inheritance: IHashProvider
Mostra file Open project: themotleyfool/NuGet Class Usage Examples

Private Properties

Property Type Description
GetHashAlgorithm System.Security.Cryptography.HashAlgorithm

Public Methods

Method Description
CalculateHash ( byte data ) : byte[]
CryptoHashProvider ( ) : System
CryptoHashProvider ( string hashAlgorithm ) : System
VerifyHash ( byte data, byte hash ) : bool

Private Methods

Method Description
GetHashAlgorithm ( ) : HashAlgorithm

Method Details

CalculateHash() public method

public CalculateHash ( byte data ) : byte[]
data byte
return byte[]

CryptoHashProvider() public method

public CryptoHashProvider ( ) : System
return System

CryptoHashProvider() public method

public CryptoHashProvider ( string hashAlgorithm ) : System
hashAlgorithm string
return System

VerifyHash() public method

public VerifyHash ( byte data, byte hash ) : bool
data byte
hash byte
return bool