- Anders Ångström
- PowerBuilder
- Thursday, 14 February 2019 01:35 PM UTC
When using the the method SymmetricEncrypt, the blob that is returned is in chinese.
I have put the following script in the clicked event and show the result in the textobject st_1:
Blob lblb_data
Blob lblb_key
Blob lblb_iv
Blob lblb_encrypt
lblb_data = Blob("text", EncodingUTF16LE! )
lblb_key = Blob("Test Key12345678", EncodingUTF16LE! )
lblb_iv = Blob("Test IV 12345678", EncodingUTF16LE! )
CrypterObject lnv_CrypterObject
lnv_CrypterObject = Create CrypterObject
lblb_encrypt = lnv_CrypterObject.SymmetricEncrypt(AES!, lblb_data, lblb_key)
st_1.text = string(lblb_encrypt)
This screenshoot is what it look like:
What am I doing wrong?
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.