Tiny Encryption Algorithm (TEA) implementation compatible with the Multi Theft Auto (MTA) Lua scripting engine.
npm install mta-tea --save
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);