TeaEncode

From Multi Theft Auto: Wiki
Revision as of 09:35, 18 May 2014 by AlexTMjugador (talk | contribs) (Added to the needs example category)
Jump to navigation Jump to search


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