Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/PY44N/LuaObfuscatorV2

A program that obfuscates Lua programs so no one can steal your source code
https://github.com/PY44N/LuaObfuscatorV2

Last synced: 5 days ago
JSON representation

A program that obfuscates Lua programs so no one can steal your source code

Awesome Lists containing this project

README

        

# Lua Obfuscator V2

This project is still a work in progress, so things may not work

Please download the latest release if you are trying to run the code

[Roadmap](https://pyan.notion.site/014c3553be6b45d1989e1e133ec2c424?v=acc453043e2844728d3db628693c100d)

## Example
Input
```lua
print("Hello World")
```

[Output](https://raw.githubusercontent.com/PY44N/LuaObfuscatorV2/master/Example.lua)

## How to use
### Required programs
- [Nodejs](https://nodejs.org/en)
- Lua 5.1 [windows](https://github.com/rjpcomputing/luaforwindows/releases/), [macos (with homebrew)](https://formulae.brew.sh/formula/[email protected]#default), Linux (lua5.1 on most package managers)

### Running the latest release (windows only)
1) The [Latest Release](https://github.com/PY44N/LuaObfuscatorV2/releases/)

2) Open the terminal in the unzipped directory

3) Install the required nodejs packages
```
cd minifier && npm i && cd ..
```

4) Put the code you wish to obfuscate into a file

5) Run the executable
```
./lua_obfuscator.exe ./YOURFILE.lua
```

### Building from source (may not work)
1) Download [Rust](https://www.rust-lang.org/)

2) Clone the repo
```
git clone https://github.com/PY44N/LuaObfuscator/
```

3) Enter the directory
```
cd LuaObfuscator
```

4) Install the required nodejs packages
```
cd minifier && npm i && cd ..
```

5) Put the code you wish to obfuscate into a file

6) Run the project using cargo
```
cargo run -- --file YOURFILE.lua
```

## Related Repos
[Lua Deserializer](https://github.com/PY44N/LuaDeserializer/) - A library for reading in a serialized Lua binary written for this project

[luamin](https://github.com/mathiasbynens/luamin) (by Mathias Bynens) - A Lua minifier written in Javascript that is being used as a temporary solution until the [minification rework](https://pyan.notion.site/014c3553be6b45d1989e1e133ec2c424?v=acc453043e2844728d3db628693c100d&p=597187d43f014c02b3f61fb70aaed968&pm=s)

[FiOne](https://github.com/Rerumu/FiOne/blob/master/source.lua) (by Rerumu) - Lua bytecode interpreter