Click or drag to resize

SecurityUtilsHmacTryVerifyAndDecrypt Method (Byte, String, String)

Verifies a HMACSHA-256 signature and decrypts data.

Namespace:  PDTec.IceNet.Sdk.Utils
Assembly:  PDTec.IceNet.Sdk (in PDTec.IceNet.Sdk.dll) Version: 7.2.0.0 (7.2.7583.15464)
Syntax
C#
public static bool HmacTryVerifyAndDecrypt(
	byte[] aKey,
	string encodedData,
	out string[] aFields
)

Parameters

aKey
Type: SystemByte
The 256-bit (32 byte) AES/HMAC key.
encodedData
Type: SystemString
The signed and encrypred data as a base64-encoded string.
aFields
Type: SystemString
The decrypted data fields.

Return Value

Type: Boolean
true if the HMAC signature is valid, otherwise false.
See Also