Base64Encode

From Multi Theft Auto: Wiki
Revision as of 02:40, 5 August 2016 by Qaisjp (talk | contribs) (replace "encrypted" with "encoded")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This function returns the base64 representation of the encoded block of data

Syntax

string base64Encode ( string data )

Required arguments

  • data: The block of data you want to encode

Returns

Returns the base64 representation of the encoded data if the encoding process was successfully completed, false otherwise.

Example

local k = base64Encode("Hello, world!")
outputConsole(k)
--Output: SGVsbG8sIHdvcmxkIQ==

See Also