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
Solved! Go to Solution.
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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
Views
Replies
Total Likes
Hi @DavidKangni,
Thanks for your response.
Just want to confirm if include the personalization block in delivery and that personalization block contains the library source code, does it will include that source code in the HTML code of the final email delivery?
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Hi @DavidKangni ,
Can you please let me know, how to implement custom JS functions which can be used in the expr of the data schema attribute.
Something similar to the below-mentioned expresion.
expr="AESEncrypt(@id)"
Want to use the custom created functions rather than the AESEncrypt.
Views
Replies
Total Likes