Most of the time there is a requirement that need to pass the URL with parameters. e.g. www.crmsiebel.org?firstname=xyz.
Here to secure the value in url for firstname we need to encode it while sending an email from SFMC.
To encode SFMC has given Base64Encode function. In below code written in Email behind firstname link.
%%[ VAR @firstname SET @firstname= Base64Encode("XYZ") ]%% <a href="http://CLOUDPAGEURL?firstname=%%=v(@firstname)=%%"><FONT color=black>firstname</FONT></a>
I wand to decode first name in cloud page. Find below code to decode it.
To decode SFMC has given Base64Decode function. Below code written in cloud page to decode the value for same.
<html> <head> %%[ VAR @firstname SET @firstname= QueryParameter("firstname") SET @firstname= Base64Decode(@firstname,'UTF-8') ]%% </head> <body> %%=v(@firstname)=%% </body> </html>