Base64Encode

Base64Encode is used to encode a string into Base64 representation.

Syntax

Base64Encode(String)

Returns

String.

Example

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 = "String to be encoded"

encoded = Encode.Base64Encode(message)

echo "Encoded Text : "

echo encoded

echo cr

decoded = Encode.Base64Decode(encoded)

echo "Decoded Text :"+decoded+cr

End Function