System.Security.Cryptography.KeyedHashAlgorithm.Create Method

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

Syntax

public static KeyedHashAlgorithm Create (string algName)

Parameters

algName
The keyed hash algorithm implementation to use. The following table shows the valid values for the algName parameter and the algorithms they map to.

Returns

A new instance of the specified keyed hash algorithm.

Remarks

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

Requirements

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