Lua Obfuscator

Lua Obfuscator — obfuscate and encrypt your Lua code

Aegis is an online Lua obfuscator and encrypter. It protects Lua 5.1–5.4, LuaJIT, Luau, Roblox and FiveM scripts with bytecode virtualization, string and number encryption and control-flow flattening — all in a few seconds, with no false positives.

Why developers choose Aegis

Virtual machine protection

Aegis compiles your Lua into a custom VM rather than leaving readable source, raising the cost of reverse-engineering far beyond simple variable renaming.

String & number encryption

Literals are encrypted and decoded on demand, so your keys, endpoints and logic are not sitting in plain text inside the file.

Every runtime supported

From standalone Lua 5.1–5.4 and LuaJIT to Luau, Roblox and FiveM — Aegis tailors protection to each target runtime.

Guaranteed working builds

Each build is self-checked at generation time, so your protected Lua runs exactly like the original. No false positives, ever.

How it works

  1. 1

    Upload your Lua file

    Add your .lua or .luau script in the Aegis dashboard.

  2. 2

    Select your runtime

    Choose Lua 5.1–5.4, Luau, Roblox or FiveM and your protection layers.

  3. 3

    Download protected

    Get a hardened, encrypted Lua file back in seconds.

Frequently asked questions

What is a Lua obfuscator?

A Lua obfuscator rewrites your Lua source into a protected form that is hard to read and reverse-engineer, while still running the same. Aegis combines obfuscation with bytecode virtualization and encryption for much stronger protection.

Which Lua versions does Aegis support?

Aegis supports Lua 5.1, 5.2, 5.3 and 5.4, LuaJIT, Luau, Roblox and FiveM (CitizenFX Lua 5.4), with protection tuned to each runtime.

Is the obfuscated Lua guaranteed to work?

Yes. Every Aegis build is verified at generation time before it is delivered, so a protected script behaves identically to the original with no false positives.

Can I obfuscate Lua online without installing anything?

Yes. Aegis runs entirely in your browser dashboard — upload a file, pick your options and download the protected result. No local install required.

Aegis is an online Lua obfuscator and encrypter for every major Lua runtime: Lua 5.1 through 5.4, LuaJIT, Luau, Roblox and FiveM. It protects your scripts with bytecode virtualization, on-demand string decoding, number-pool encryption, control-flow flattening and variable renaming, and — for Roblox and FiveM — optional server-gated key delivery so the key never sits in the file. Obfuscate and encrypt your Lua code in seconds, with a unique build every time and no false positives.