Difference between revisions of "Base64Encode"

From Multi Theft Auto: Wiki
(Created page with "__NOTOC__ {{Server client function}} {{New feature/item|9.06056|1.3.5|6056| This function returns the [https://en.wikipedia.org/wiki/Base64 base64] representation of the encrypte...")
(No difference)

Revision as of 13:59, 14 March 2014

FROM VERSION 1.3.5 r6056 ONWARDS

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

Syntax

string base64Encode(string/int data)

Required arguments

  • data: The block of data you want to encrypt

Returns

Returns the base64 representation of the encrypted data if the encryption process was successfully completed, false otherwise.

Example

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

See Also