aes cbc encryption not working? | Community
Skip to main content
EDMOND_Kevin
New Participant
September 2, 2019
Solved

aes cbc encryption not working?

  • September 2, 2019
  • 3 replies
  • 5836 views

Hello.

We currently need to encrypt/decrypt some data in ACS for privacy purpose between system.

We will need to send an email, with a link in it.

This link got the email encrypted in aes format with cbc.

ACS currently gor some functions that can encrypt data ( encryption_aescbcEncrypt )

We did use this function with all the required parameter, but the output cannot be decypher by anyone ( all tools used cannot get back the original value).

if i use this example :

     encryption_aescbcEncrypt('TEST',"\x656e6372797074546f6f6c7331323334","\x6f0561702db407a325634764f8030519")here's the result i got in ACS : 279432169de85d110dba9989df547b5f

if i use the decrypt tools from those websites ( AES Encryption – Easily encrypt or decrypt strings or files , CyberChef ) , this decrypt to something that is wrong :

K.½6¯dÒ.(.Ħò

/

If i use those website to encrypt, both answer are : 3e909d57ce667056636865781948c901

(HEX format for all).

ANyone ever step on that problem?

(on a side note the decryptfunction: encryption_aescbcDecrypt  seems to not work eitheir (blank result everytime).

thank you for the help

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by bisswang

You should try

encryption_aescbcEncrypt('TEST','\\x656e6372797074546f6f6c7331323334','\\x6f0561702db407a325634764f8030519')

Then it should give you the same value as you stated from the websites

3 replies

debanjanab15925
New Participant
December 11, 2020

I also had the same problem while encryption and decryption in Adobe campaign standard and followed the solution that is provided in this conversation and it worked .

To encrypt :

encryption_aescbcEncrypt('TEST','\\x656e6372797074546f6f6c7331323334','\\x6f0561702db407a325634764f8030519')

To De-crypt :

encryption_aescbcDecrypt('encryptedvalue','\\x656e6372797074546f6f6c7331323334','\\x6f0561702db407a325634764f8030519')

In the document it is written as to add x in prior to the encrypted value but I checked and found that there is no need to do this .

 

Thanks

Debanjana

chan2111
New Participant
November 11, 2019

How about decryption of the encrypted value?

bisswangAccepted solution
Employee
September 11, 2019

You should try

encryption_aescbcEncrypt('TEST','\\x656e6372797074546f6f6c7331323334','\\x6f0561702db407a325634764f8030519')

Then it should give you the same value as you stated from the websites

debanjanab15925
New Participant
January 29, 2021
it worked few days ago but it is not working now