1.0.4 • Published 5 months ago
luasec-npm-api v1.0.4
LuaSec NPM Package
LuaSec is a powerful obfuscation tool for Lua scripts, designed to enhance security and protect your code from tampering and reverse engineering. This package provides an easy-to-use API for integrating LuaSec obfuscation into your Node.js projects.
Installation
Prerequisites
- Node.js (version 18 or higher)
- npm or yarn package manager
Install via npm
npm install luasec-npm-api
Usage / Benutzung
Example / Beispiel
import { LuaSecAPI } from 'luasec-npm-api';
const apiKey = 'LUASEC-XXXXX-XXXX-XXXX-XXXX-XXXXXXX';
const luaSec = new LuaSecAPI(apiKey);
const payload = {
script: 'print("evikookie and qnx say hello")',
platformLock: 'lua',
antiTamper: true,
encryptStrings: true
};
async function obfuscateScript() {
try {
const result = await luaSec.obfuscate(payload);
console.log('Obfuscation successful:', result);
} catch (error) {
console.error('Obfuscation error:', error.message);
}
}
obfuscateScript();
Methods / Funktionen
obfuscate(payload: Payload): Promise<Result>
Obfuscates the given script.
getApiKeyInfo(): Promise<ApiKeyInfo>
TODO
getObfuscations(): Promise<Obfuscation[]>
TODO
License
This project is licensed under the MIT License.