xaes() ;
;
n
s stringToEncrypt="ad=snoopy&m=123456789&datetime="
s stringKey="Svp3r_S3cr3t_K3y_F0r_t3st1ng_AST" ;
s stringvector="V3ry_r@nd0m_1n1t" ;
;
s key=$ZCONVERT(stringKey,"O","UTF8") W !,"key: ",?12,key
s IV=$ZCONVERT(stringvector,"O","UTF8") W !,"IV: ",?12,IV
s text=$ZCONVERT(stringToEncrypt,"O","UTF8") W !,"text: ",?12,text
;
;
s BinaryText=$ZCONVERT(stringvector,"O","UTF8")
s Base64Encoded=$system.Encryption.Base64Encode($ZCONVERT(stringvector,"O","UTF8")) w !,"Base64Encoded: ",?12,Base64Encoded
;
;
s enctext=$SYSTEM.Encryption.AESCBCEncrypt(text,key,IV) w !,"enctext: ",?12,enctext
s ciphertext=$SYSTEM.Encryption.Base64Encode($ZCONVERT(enctext,"O","UTF8"),1) W !,"ciphertext: ",?12,ciphertext
;
q
The Base64Encoded and the Temp Vector 64 from C# match. However if I try to put the Base64Encoded into $SYSTEM.Encryption.AESCBCEncrypt, I get an ILLEGAL VALUE as that function requires UTF8. It still fails if I convert it to UTF8 before the AESCBCEncrypt.
So I have unsubscribed from everything and am getting emails for threads I never even viewed. Also, When I go to subscriptions it says I have subscribed to two categories, however, when I click the link the categories tags box is empty.
Seems like the only way to complete stop the emails is to turn off all notifications.
go to post
I was able to download it.
go to post
No Worries. Thanks!
go to post
ok, sorry guys was on a brief vacation.
The C# console shows this:
However the Cache
will output:
The Base64Encoded and the Temp Vector 64 from C# match. However if I try to put the Base64Encoded into $SYSTEM.Encryption.AESCBCEncrypt, I get an ILLEGAL VALUE as that function requires UTF8. It still fails if I convert it to UTF8 before the AESCBCEncrypt.
go to post
So I have unsubscribed from everything and am getting emails for threads I never even viewed. Also, When I go to subscriptions it says I have subscribed to two categories, however, when I click the link the categories tags box is empty.
Seems like the only way to complete stop the emails is to turn off all notifications.
go to post
Thank you for the help.
Bill