Base64Encode

From Multi Theft Auto: Wiki
Revision as of 01:46, 10 March 2016 by Miki785 (talk | contribs)
Jump to navigation Jump to search

<pageclass class="both" subcaption="Shared function"></pageclass> <lowercasetitle></lowercasetitle> This function returns the base64 representation of the encrypted block of data

Syntax

string base64Encode ( string 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