Cryptography.ComputeHmacSha256Hash Method (Byte[], Byte[])
Computes a Hash-based Message Authentication Code (HMAC) by using the SHA256 hash function.
Namespace: Microsoft.WindowsAzure.Common.Internals
Assembly: Microsoft.WindowsAzure.Common (in Microsoft.WindowsAzure.Common.dll)
Syntax
public static byte[] ComputeHmacSha256Hash(
byte[] key,
byte[] data
)
public:
static array<unsigned char>^ ComputeHmacSha256Hash(
array<unsigned char>^ key,
array<unsigned char>^ data
)
static member ComputeHmacSha256Hash :
key:byte[] *
data:byte[] -> byte[]
Public Shared Function ComputeHmacSha256Hash (
key As Byte(),
data As Byte()
) As Byte()
Parameters
key
Type: System.Byte[]The key to use in the hash algorithm.
data
Type: System.Byte[]The input from which the hash code is computed.
Return Value
Type: System.Byte[]
The computed hash code.
See Also
Cryptography Class
Microsoft.WindowsAzure.Common.Internals Namespace
Return to top