Encrypt URL parameters

Avatar

Avatar

LJane

Avatar

LJane

LJane

21-04-2020

Hi,

 

I am looking to encrypt URL parameters for our Unsubscribe link using AES256 or similar.

 

Example:

 

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

SatheeskannaK

MVP

Avatar

SatheeskannaK

MVP

SatheeskannaK
MVP

06-05-2020

Hi @LJane ,

 

You will have to follow two things in order to get query parameters encrypted for each profile, in such a way that it generates personalized preference center url when a user clicks. I see that you want to get email & country data for each of the profile to be encrypted.

 

1. First thing you will have to encrypt the email & country using the "encryption_aescbcEncrypt" function available by adding them as additional data on workflow query activity. Refer this page for list of functions: List of functions.

For example: encryption_aescbcEncrypt(@email, "\x4839dmjslekws482dks", "\xdfjskl30204dxms492")

 

2. Then create content block with the expression alias you see on the additional data.

    For email encryption could be something: <%= context.targetData.expr1 %> 

   Similarly you will have one for country encryption which is <%= context.targetData.expr2 %>

 

Final url will be like this: https://www.google.com?params=<%= context.targetData.expr1 %>&<%= context.targetData.expr2 %>  and whenever user clicks the preference center url it will have their email & country encrypted as query parameter.

 

Hope this helps.

 

Thanks!

SK

 

 

Answers (1)

Answers (1)

Avatar

Avatar

yzx2716

Avatar

yzx2716

yzx2716

27-04-2020

Me too, I want the idea