AMPscript
Base 64 Decode
Base 64 Encode
GUID
IsEmailAddress
IsPhoneNumber
MD5
ParseJSON
RaiseError
Stringify
Validate Your Server-Side JavaScript using WSProxy
Decodes any string value encoded using the Base64Encode() function. This function works only with values encoded using the specific server-side JavaScript function and not any other Base64-encoded string values.
Base64Decode(1, 2)
| Ordinal | Type | Description | |
|---|---|---|---|
| 1 | string | Required | Base64 encoded string to decode |
| 2 | string | Character set to use when decoding string value, such as ASCII or UTF-8 |
1<script runat="server">
2 var encodedStr = Platform.Function.Lookup("forBase64Info","ReceiptData","ReceiptKey","stringValue");
3 var decodedStr = Platform.Function.Base64Decode(encodedID);
4</script>