Hi there,
Lucee 6.1.0.243
Windows Server
I want to connect to a software, which i should have “Hex” encoding and algorithm = “AES/CBC/PKCS5Padding”
I code below lines:
<cfset idata = "08230486BB55B23CC3521F0F01002200200011">
<cfset AESSecretKey = binaryEncode(generateSecretKey("AES", 128), "hex")>
<cfset iv = binaryEncode(generateSecretKey("AES", 128), "hex")>
<cfset cipherText = encrypt(
string = idata,
key = AESSecretKey,
algorithm = "AES/CBC/PKCS5Padding",
IVorSalt = iv,
encoding = "HEX"
)>
when i run these codes, i receive the below error:
Can any one Help me?