Usage

Syntax: base64encode(str contents);

Explanation

Encodes the given string using the base64 system.

Note that base64 is not encryption and does not provide any real security, since a base64 string can be decoded just as easily as it can be encoded.

To decode a base64 string, see base64decode.

Example

function onCreated() {
  echo(base64encode("Hello world!"));
}

... Will output "SGVsbG8gd29ybGQh" in RC when on the serverside, or in your F2 menu when on the clientside.

Categories

CategoryFunctionClientside
CategoryFunctionServerside
Comments [Hide comments/form]
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki