TeaEncode: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Server_client function}} {{New feature/item|9.06056|1.3.5|6056| This functions performs the [https://en.wikipedia.org/wiki/Tiny_Encryption_Algorithm Tiny Encryption ...")
 
(Added to the needs example category)
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Needs Example}}
{{Server_client function}}
{{Server_client function}}



Revision as of 09:35, 18 May 2014


Accessories-text-editor.png Script Example Missing Function TeaEncode 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 functions performs the Tiny Encryption Algorithm on the given string and returns the base64 representation of the encrypted block of data.

Syntax

string teaEncode ( string data, string key )

Required Arguments

  • data: The block of data you want to encrypt
  • key: The key that should be used for encryption

Returns

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

Example

Todo

See Also