Create Method
Collapse the table of content
Expand the table of content

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