Base64Encode

Overview 

Encodes any string value. You can only decode any encoded string values using the specific server-side JavaScript function Base64Decode() and not any other Base64-encoded string values.

Syntax 

Base64Encode(1, 2)

Function Properties 

OrdinalTypeDescription
1stringRequiredString to encode
2stringCharacter set to use when decoding string value, such as ASCII or UTF-8

Example 

1<script runat="server">
2     var normalStr = Platform.Function.Lookup("ForBase64Info","ReceiptData","ReceiptKey","stringValue");
3     var encodedStr = Platform.Function.Base64Encode(normalStr);
4</script>