docServerUserLandCom picture
Contents
Frontier Site

base64.encode

Syntax base64.encode (data, linelength)

Params data is the data to be encoded; it can be of any type

linelength is the number of characters to wrap the output data at; a linelength of 0 does not wrap the output

Action Encodes the data with the base64 algorithm, which makes it safe for transport through email and other 7-bit connections.

Returns A string containing the encoded data

Examples base64.encode ("mypassword", 0)

   » "bXlwYXNzd29yZA=="

Notes This verb implements the base64 encoding as defined in RFC 1521.

base64 encoding is used for MIME email, HTTP basic authentication, and Frontier's Fat Page file format.

See Also base64.decode


© Copyright 1992-2026 UserLand Software. Email: webmaster@userland.com.