Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

aes cbc encryption not working?

Avatar

Avatar
Validate 1
Level 2
EDMOND_Kevin
Level 2

Likes

10 likes

Total Posts

18 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 2
EDMOND_Kevin
Level 2

Likes

10 likes

Total Posts

18 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
EDMOND_Kevin
Level 2

02-09-2019

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 5
Employee
ramon_bisswange
Employee

Likes

242 likes

Total Posts

353 posts

Correct Reply

182 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 25
Give Back 10
Give Back
View profile

Avatar
Give Back 5
Employee
ramon_bisswange
Employee

Likes

242 likes

Total Posts

353 posts

Correct Reply

182 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 25
Give Back 10
Give Back
View profile
ramon_bisswange
Employee

11-09-2019

You should try

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

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

Answers (2)

Answers (2)

Avatar

Avatar
Validate 1
Level 1
debanjanab15925
Level 1

Like

1 like

Total Posts

15 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
debanjanab15925
Level 1

Like

1 like

Total Posts

15 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
debanjanab15925
Level 1

11-12-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

Avatar

Avatar
Validate 1
Level 3
chan2111
Level 3

Likes

21 likes

Total Posts

59 posts

Correct Reply

6 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 3
chan2111
Level 3

Likes

21 likes

Total Posts

59 posts

Correct Reply

6 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
chan2111
Level 3

11-11-2019

How about decryption of the encrypted value?