SecurityUtilsHmacTryVerifyAndDecrypt Method (Byte, 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 public static bool HmacTryVerifyAndDecrypt(
byte[] aKey,
SecurityUtilsBase64Variant inputFormat,
string encodedData,
out string[] aFields
)
Parameters
- aKey
- Type: SystemByte
The 256-bit (32 byte) AES/HMAC key. - 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:
Booleantrue if the HMAC signature is valid, otherwise
false.
See Also