HMAC::Create Method (String^)
Creates an instance of the specified implementation of a Hash-based Message Authentication Code (HMAC).
Assembly: mscorlib (in mscorlib.dll)
Parameters
- algorithmName
-
Type:
System::String^
The HMAC implementation to use. The following table shows the valid values for the algorithmName parameter and the algorithms they map to.
Parameter value
Implements
System.Security.Cryptography.HMAC
System.Security.Cryptography.KeyedHashAlgorithm
HMACMD5
System.Security.Cryptography.HMACMD5
HMACRIPEMD160
System.Security.Cryptography.HMACRIPEMD160
HMACSHA1
System.Security.Cryptography.HMACSHA1
HMACSHA256
System.Security.Cryptography.HMACSHA256
HMACSHA384
System.Security.Cryptography.HMACSHA384
HMACSHA512
System.Security.Cryptography.HMACSHA512
MACTripleDES
System.Security.Cryptography.MACTripleDES
Return Value
Type: System.Security.Cryptography::HMAC^A new instance of the specified HMAC implementation.
HMAC supports a number of hash algorithms, including MD5, SHA-1, SHA-256, and RIPEMD160. For the full list, see the supported values for the algorithmName parameter.
Available since 2.0