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

SOLVED

Adobe Campaign returns the mass code by using the function "decryptDES"

felixsongfei
Level 3
Level 3

Adobe Campaign returns the mass code by using the function "decryptDES", how to fix the problem?

JS code example:

var str="是的";

logInfo(">>>"+decryptDES("12345689abcdefgh",encryptDES("12345689abcdefgh",str,"CBC"),"CBC"));

result:

/,,

The result is not a valid character the same with str. Can any one tell me how to fix the issue?

1 Accepted Solution
wodnicki
Correct answer by
Community Advisor
Community Advisor

Hi,

The key (1st arg) has to be in base16 [0-9a-f] and 16 chars long.

Thanks,

-Jon

View solution in original post

1 Reply
wodnicki
Correct answer by
Community Advisor
Community Advisor

Hi,

The key (1st arg) has to be in base16 [0-9a-f] and 16 chars long.

Thanks,

-Jon

View solution in original post