System.Security.Cryptography.HMAC.Create Method

Creates an instance of the specified implementation of a Hash-based Message Authentication Code (HMAC).

Syntax

public static HMAC Create (string algorithmName)

Parameters

algorithmName
The HMAC implementation to use. The following table shows the valid values for the algorithmName parameter and the algorithms they map to.

Returns

A new instance of the specified HMAC implementation.

Remarks

HMAC supports a number of hash algorithms, including MD5, SHA-1, SHA-256, and RIPEMD160. For the full list, see the supported values for the algorithmName parameter.

Requirements

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