1.0.0 • Published 7 years ago

mta-tea v1.0.0

Weekly downloads
111
License
ISC
Repository
github
Last release
7 years ago

mta-tea

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);