Click or drag to resize

SecurityUtilsHmacTryVerifyAndDecrypt Method (String, SecurityUtilsBase64Variant, 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(
	string key,
	SecurityUtilsBase64Variant inputFormat,
	string encodedData,
	out string[] aFields
)

Parameters

key
Type: SystemString
The 256-bit (32 byte) AES/HMAC key as a 64-char hex string.
inputFormat
Type: PDTec.IceNet.Sdk.UtilsSecurityUtilsBase64Variant
The base64 variant of the encoded data.
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