HMAC.Create Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

static member Create : unit -> HMAC

Return Value

Type: System.Security.Cryptography.HMAC

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

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

.NET Framework
Available since 2.0
Return to top
Show: