Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HMAC::Create Method ()

 

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

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

public:
static HMAC^ Create()

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:
© 2017 Microsoft