MoonVeil-Docs/content/docs/options/mangle-statements.md
2025-05-02 02:25:57 -05:00

18 lines
878 B
Markdown

---
weight: 100
title: "Mangle Statements"
description: "Constant decomposition and statement patching"
icon: "article"
date: "2025-05-01T18:47:58-05:00"
lastmod: "2025-05-01T18:47:58-05:00"
---
This option will enable non-destructive constant decomposition and various statement patching.
The following child options are available:
- `Mangle Numbers`: Replaces number constants with a randomized binary expression which evaluates to that number.
- `Mangle Strings`: Performs light obfuscation of string constants.
- `Mangle Self-calls`: Replaces `x:foo()` with `x.foo(x)`.
- `Mangle Named Indexes`: Replaces `x.foo` with `x[<obfuscated "foo">]`. This will mangle the string regardless of whether `Mangle Strings` is enabled.
- `Mangle Globals`: Globals are replaced with a cached global table indexed by an obfuscated string. eg. `print` becomes `_ENV[<obfuscated "print">]`