Overview
Encrypt and decrypt sensitive text data using AES
Key Features & FunctionalityEncryption and decryption using AES with option to format the output as hex or base64.
Hello,
We're currently doing some encryption tests with the AES Encrypt plugin, but we've come across an error that seems quite strange to us. If we have an iv with the 16 bytes requested, we get the following error:
"Error encrypting value: IV must be 16 bytes long."
Could you help us? I send the code we are using below.
local!encryptedData: encrypttext( valueToEncrypt: ri!valueToEncrypt, iv: local!iv, scsKey: local!scs.externalSystemKey, scsField: local!scs.fieldKey, cipher: local!cipher, ),
Thank you in advance.
Hello joane,
i had the same problem and the solution was encoding IV in base64.
local!encryptedData: encrypttext( valueToEncrypt: ri!valueToEncrypt, iv: encodebase64string(local!iv), scsKey: local!scs.externalSystemKey, scsField: local!scs.fieldKey, cipher: local!cipher, ),