System.Security.Cryptography.KeyedHashAlgorithm Class

Represents the abstract class from which all implementations of keyed hash algorithms must derive.

See Also: KeyedHashAlgorithm Members


public abstract class KeyedHashAlgorithm : HashAlgorithm


Hash functions map binary strings of an arbitrary length to small binary strings of a fixed length. A cryptographic hash function has the property that it is computationally infeasible to find two distinct inputs that hash to the same value. Small changes to the data result in large, unpredictable changes in the hash.

A keyed hash algorithm is a key-dependent, one-way hash function used as a message authentication code. Only someone who knows the key can verify the hash. Keyed hash algorithms provide authenticity without secrecy.

Hash functions are commonly used with digital signatures and for data integrity. The System.Security.Cryptography.HMACSHA1 class is an example of a keyed hash algorithm.


Namespace: System.Security.Cryptography
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0,,