- Richard Donagrandi
- PowerBuilder
- Tuesday, 5 March 2024 10:28 PM UTC
I already posted this as a bug, but if anyone has any other suggestions:
There seems to be an issue with SymmetricDecrypt not returning the full decrypted message.
Given the following values -- these are all hex values:
encrypted data: 158ABE1495B20262E8779930863C211BF6EF8170285BDBF7E5E7E435E08929CE
IV: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Key: abcdef0123456789abcdef0123456789
OperationModeCBC!
PKCSPadding!
SymmetricDecrypt returns: 3~7~618~2~Limit
For converting the above into blobs, I used the CoderObject to HEXDECODE the above "string" values... The encrypted data I already had as a blob; the hex data string is a hex representation of the data received so you can test the following:
However, if I go to http://symmetric-ciphers.online-domain-tools.com/ and plug in those values, the full message is actually:
33 7e 37 7e 36 31 38 7e 32 7e 4c 69 6d 69 74 20
20 20 20 20 20 20 20 20 31 34 39 2e 30 30 7e 00
3~7 ~618~2~Limit 149.00~
... So, for whatever reason, SymmetricDecrypt fails to return the second block.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.