Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 543 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 543 Bytes

mta-tea Build Status

Tiny Encryption Algorithm (TEA) implementation compatible with the Multi Theft Auto (MTA) Lua scripting engine.

Installation

NPM

npm install mta-tea --save

Usage

var tea = require("mta-tea");
var key = "secret key";

var encoded = tea.encode("input text", key);
console.log("Encoded:", encoded);

var decoded = tea.decode(encoded, key);
console.log("Decoded:", decoded);