Virtual machine
Wraps your program in a tiny opcode-style VM. The original source becomes a constant table decoded and dispatched at runtime — readable only through the wrapper.
Protection layers
Cosmic Obfuscator stacks classic transforms with a VM wrapper so the resulting Lua is opaque without sacrificing portability.
Wraps your program in a tiny opcode-style VM. The original source becomes a constant table decoded and dispatched at runtime — readable only through the wrapper.
Every string literal becomes an XOR-encoded UTF-8 byte array decoded by a small prelude at load time. Per-job key, so two builds never look the same.
Local variables and function parameters are renamed to opaque hex symbols (_0xA31F). Global names and table keys are preserved so your APIs keep working.
Numeric and boolean constants can be wrapped in arithmetic decoys, making static analysis tools work harder for every value.
Inserts decoy locals and dead arithmetic between meaningful operations to break pattern matching and inflate reverse-engineering cost.
Output is plain Lua — no native binaries, no special runtime. Drop it straight into your game, exploit, or embedded device.
The Cosmic VM is a small, honest wrapper — not a one-to-one clone of commercial obfuscators like Luraph. It raises the bar significantly against casual reversing and pattern-based deobfuscators, but determined attackers with time can still get through. Combine it with server-side validation for anything that truly matters.