A contract for any provider for hash implementations.
Compares a plain text input with a computed hash.
public Boolean CompareHash(plaintext, hashedtext)
true if plaintext hashed is equal to hashedtext, false otherwise.
Name | Type | Summary |
---|---|---|
plaintext | Byte[] | The input to compare with the hash. |
hashedtext | Byte[] | The hash value to compare with the input value. |
Computes the hash value for plaintext.
public Byte[] ComputeHash(plaintext)
The computed hash code.
Name | Type | Summary |
---|---|---|
plaintext | Byte[] | The input for which to compute the hash. |
Computes the hash value for stream.
public Byte[] ComputeHash(stream)
The computed hash code.
Name | Type | Summary |
---|---|---|
stream | Stream | The input Stream for wich to compute the hash. |
In this document