:Encode() - encodes the contents of the specified string, converting the data into printable text.


Class

     aprEncode()

 

Syntax

     :EncodeFile(cInVar) --> cEncodedText

 

Parameters

 

cInVar

String to be Encoded

 

 

Return

     cDecodedText. Character String of the Decoded Text

     If the operation failed NIL is returned, look at :nErr and :cErr for more information.

 

Description

Encodes the contents of the specified character string variable using the base64 encoding algorithm and returns the results.

 

A common use of this function is to obscure a plain text string. This technique is used by some Internet application protocols when passing authentication information over an unsecure connection. Although it is not a secure method of encrypting data, it does prevent a casual observer from reading the encoded text.

 

See Also

 :Decode, :EncodeFile, :DecodeFile