iv = ""
padding = 1
cipher = CreateObject("roEVPCipher")
cipher.setup(true, "aes-256-cbc", args.key, iv, padding)
data = FormatJson(args.data)
ba = CreateObject("roByteArray")
ba.FromAsciiString(data)
result = cipher.process(ba)
Here secret key I am using is 32 bytes (39665e28ee8y7rc6b25c57068f2f04c3)
iv is optional here, but I have tried with 32 byte hex string as well.
It always return invalid result, anyone have idea why it fails?