· 7 years ago · Jun 06, 2018, 05:16 PM
1%%[
2VAR @email, @customer_no, @secret, @url, @hash
3SET @email = "%%email%%"
4SET @customer_no = "%%customer_no%%"
5SET @secret = "<secretkey>"
6SET @hash = SHA256(Concat(@email,@customer_no,@secret))
7SET @url = Concat("<CompanyURL>?a=",@email,"&c=",@customer_no,"&h=",@hash)
8]%%
9
10%%=v(@email)=%%
11%%=v(@customer_no)=%%
12%%=v(@secret)=%%
13%%=v(@hash)=%%
14
15%%[
16VAR @email, @customer_no, @secret, @url, @hash
17SET @email = Lookup("DEtest","email","email",_SubscriberKey)
18SET @customer_no = Lookup("DEtest","customer_no","email",_SubscriberKey)
19SET @secret = "<SECRET KEY>"
20SET @hash = SHA256(Concat(@email,@customer_no,@secret))
21SET @url = Concat("<URL>a=",@email,"&c=",@customer_no,"&h=",@hash)
22]%%