ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. teaDecode

Function

teaDecode

Server and clientMiscellaneousIdentical to MTA:SA

Decrypts text from teaEncode (also from other servers) with the same key. A wrong key gives no error, just different bytes.

Syntax

string teaDecode(string data, string key)

Arguments

datastring
Encrypted text (base64).
keystring
The key.

Returns

The decrypted text (with padding zeros).

Example

local plain = teaDecode(getAccountData(account, "sekret") or "", "klucz")

See also