Base64Encode

概要 

文字列値をエンコードします。エンコードした文字列値は、特定のサーバーサイド JavaScript 関数の Base64Decode() を使用してのみ復号化でき、他の Base64 エンコード文字列値は復号化できません。

構文 

Base64Encode(1, 2)

関数のプロパティ 

序数説明
1string必須エンコードする文字列
2string文字列値を復号化するときに使用する文字セット (ASCII、UTF-8 など)

例 

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