[SalesForce] Encrypting SFMC email link parameter values

The email address of the subscriber is currently appended as a parameter to our SFMC email links. Rather than have the email as raw text, we would like to encrypt the value.

For example, the link url is now: http://www.test.com/?email=test@test.com
With encryption, it should be: http://www.test.com/?email=[encrypted value]

What would be the best way to achieve this?
Note, we want to use encryption, because we need to decrypt the value as well.

Addition: Decryption needs to be done in node. So how can we encrypt in SFMC and decrypt in node?

Best Answer

Lookup : https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-programmatic-content.meta/mc-programmatic-content/EncryptSymmetric.htm

You will want to do something like this (using RedirectTo :

%%=RedirectTo(Concat('http://www.test.com/?email=', EncryptSymmetric(_emailaddr, 'AES', @null, 'password', @null, '0000000000000000', @null, '00000000000000000000000000000000'))=%%
Related Topic