Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft