Base64Decode

From Multi Theft Auto: Wiki
Revision as of 19:54, 19 February 2024 by Nico834 (talk | contribs) (Set base64Decode deprecated as #3312)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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


Emblem-important.png This function is deprecated. This means that its use is discouraged and that it might not exist in future versions.

Please use decodeString instead.


Syntax

string base64Decode(string data)

Required arguments

  • data: The block of data you want to decrypt

Returns

Returns the decrypted data from base64 representation of the encrypted block if the decryption process was successfully completed, false otherwise.

Example

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

See Also