System.Security.Cryptography.HMAC.Create Method

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

Syntax

public static HMAC Create ()

Returns

A new SHA-1 instance, unless the default settings have been changed by using the <cryptoClass> element.

Remarks

By default, this overload uses the SHA-1 implementation of HMAC. If you want to specify a different implementation, use the HMAC.Create(string) overload, which lets you specify an algorithm name, instead.

Requirements

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