IHashProvider

A contract for any provider for hash implementations.

Namespace:
Inetdev.Security.Cryptography
Type:
Interface
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
Yes

Methods

CompareHash

Compares a plain text input with a computed hash.

Signature:
public Boolean CompareHash(plaintext, hashedtext)
Returns

true if plaintext hashed is equal to hashedtext, false otherwise.

Parameters
Name Type Summary
plaintext Byte[] The input to compare with the hash.
hashedtext Byte[] The hash value to compare with the input value.

ComputeHash

Computes the hash value for plaintext.

Signature:
public Byte[] ComputeHash(plaintext)
Returns

The computed hash code.

Parameters
Name Type Summary
plaintext Byte[] The input for which to compute the hash.

ComputeHash

Computes the hash value for stream.

Signature:
public Byte[] ComputeHash(stream)
Returns

The computed hash code.

Parameters
Name Type Summary
stream Stream The input Stream for wich to compute the hash.