TeaDecode: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Server_client function}} {{Needs Example}} {{New feature/item|9.06056|1.3.5|6056| This function decrypts given [https://en.wikipedia.org/wiki/Base64 base64] repres...")
 
No edit summary
Line 11: Line 11:
===Required Arguments===
===Required Arguments===
*'''data:''' The block of data you want to decrypt
*'''data:''' The block of data you want to decrypt
*'''key:''' The key that should be used for decryption
*'''key:''' The key that should be used for decryption (Only first 16 characters are used)


===Returns===
===Returns===

Revision as of 18:14, 22 July 2014

Accessories-text-editor.png Script Example Missing Function TeaDecode needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.
ADDED/UPDATED IN VERSION 1.3.5 r6056:

This function decrypts given base64 representation of encrypted data using the Tiny Encryption Algorithm.

Syntax

string teaDecode ( string data, string key )

Required Arguments

  • data: The block of data you want to decrypt
  • key: The key that should be used for decryption (Only first 16 characters are used)

Returns

Returns string containing the decrypted data if the decryption process was successfully completed, false otherwise.

Example

Todo

See Also

Shared