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

Ordinal Type Description
1 string Required String to encode
2 string Character set to use when decoding string value, such as ASCII or UTF-8

Example

<script runat="server">
     var normalStr = Platform.Function.Lookup("ForBase64Info","ReceiptData","ReceiptKey","stringValue");
     var encodedStr = Platform.Function.Base64Encode(normalStr);
</script>
Last Updated: Jun 8, 2021