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

Custom JS Functions in adobe campaign classic

Avatar

Avatar
Validate 1
Level 1
nitesha38268385
Level 1

Likes

0 likes

Total Posts

15 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
nitesha38268385
Level 1

Likes

0 likes

Total Posts

15 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
nitesha38268385
Level 1

15-09-2020

Hi Folks,

 

I want to generate the encrypted personalized parameter for the URL in the email CTA.

These parameters will be encrypted using the AES algorithm using the custom keys, salt, and iv.

To achieve, this I am using the CryptoJS library in the adobe campaign classic. 

This process requires the Javascript functions to be executed against each record in the workflow. By, using CryptoJS Library Functions.

can we achieve this in the same manner as the escapeUrl(), cryptString() functions?

What I want to know is, how to make the custom JS function to be available to call in the delivery?

 

Any Help or suggestions in this regards is higly appreciated..

 

Thanks,

Nitesh Anwani

additional functions custom javascript encryption javascript

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 250
MVP
DavidKangni
MVP

Likes

255 likes

Total Posts

372 posts

Correct Reply

150 solutions
Top badges earned
Boost 250
Validate 1
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Boost 250
MVP
DavidKangni
MVP

Likes

255 likes

Total Posts

372 posts

Correct Reply

150 solutions
Top badges earned
Boost 250
Validate 1
Give Back 5
Give Back 3
Give Back 25
View profile
DavidKangni
MVP

15-09-2020

Hi Nitesh,

 

Create your libraries in a perso blocks. Call your blocks at the beginning of your deliveries and then you can used function as in the url below

 

<%@ include view='AesLibrary' %> --> crypto js library
<%@ include view='AesModeOfOperation' %> --> crypto function (cbc, etc,)

 

href="http://xxxx.com/email_unsubscribe.aspx?email=<%= cbcEncrypt(recipient.targetData.email) %>&source=ACC"

 

Thanks,

David

Answers (0)