System.Security.Cryptography.KeyedHashAlgorithm.Create Method

Creates an instance of the default implementation of a keyed hash algorithm.

Syntax

public static KeyedHashAlgorithm Create ()

Returns

A new System.Security.Cryptography.HMACSHA1 instance, unless the default settings have been changed.

Remarks

By default, this overload uses the System.Security.Cryptography.HMACSHA1 implementation of a keyed hash algorithm. If you want to specify a different implementation, use the KeyedHashAlgorithm.Create(string) overload, which lets you specify an algorithm name, instead. The cryptography configuration system defines the default implementation of the System.Security.Cryptography.KeyedHashAlgorithm class.

Requirements

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