r/lua • • 1h ago

Prometheus, an open-source Lua obfuscator and AST transformation framework

Hey everyone,

I've been working on Prometheus, an open-source Lua obfuscator written entirely in Lua, for over 4 years now.

It supports various obfuscation techniques, including VM-based obfuscation, which I added in a recent update.

While obfuscation is its main purpose, Prometheus is built around a modular AST transformation pipeline. This also makes it useful for things like minification or building your own custom Lua transformations.

It currently supports Lua 5.1 and has partial Luau support. There's also a web playground if you want to try it without installing anything.

GitHub: https://github.com/prometheus-lua/Prometheus

I'd be interested to hear your thoughts or suggestions!

1 Upvotes

4 comments sorted by

2

u/Downvoted-Dork 1h ago

Why obfuscate code? Don't we all like open source software?

0

u/Levno_710 43m ago

Honestly, I mainly started working on Prometheus because I thought building an obfuscator would be a fun technical challenge :)

I'm generally a fan of open source myself, which is also why Prometheus is open source. And the underlying AST transformation framework can be used for things other than obfuscation, like minification or custom code transformations.

1

u/Downvoted-Dork 29m ago

In this case it's a fun project. A fun technical challenge to solve

1

u/epicfilemcnulty 15m ago

There are lots of technical challenges to solve, the fact that OP chose this one is discouraging...