Base64Encode
Overview
Encodes human-readable text into Base64 information.Syntax
Base64Encode(1)
| Ordinal | Type | Description | |
|---|---|---|---|
| 1 | string | Required | TLocation of text to encrypt, either in a variable or data either in variable or data extension field via Lookup() AMPscript function |
Usage
%%[
VAR @normalStr, @encodedStr
SET @normalStr = Lookup('ForBase64Info', 'ReceiptData', 'ReceiptKey', 1)
SET @encodedStr = Base64Encode(@normalStr)
]%%
The Lookup() function retrieves the text information from the data extension, and the Base64Encode() encodes the text into Base64 information and assigns that value to the @encodedStr variable.