Base64Encode
Base64Encode 用於將字串解碼為 Base64 表示。
語法
Base64Encode(String)
結果
字串
範例
Function Main
Dim message As String
Dim encoded As String
Dim decoded As String
cr = Chr(13)+Chr(10)'Carriage return and line feed
message = "要編碼的字串"
encoded = Encode.Base64Encode(message)
echo "編碼的文字: "
echo encoded
echo cr
decoded = Encode.Base64Decode(encoded)
echo "編碼的文字: "+decoded+cr
End Function