Configuration
config.yml options
The config.yml file must be placed next to the obfuscator JAR. Copy config.yml.example to config.yml.
| Option | Default | Description |
|---|
classRenamingEnabled | true | Rename classes |
methodRenamingEnabled | true | Rename methods |
fieldRenamingEnabled | true | Rename fields |
numberObfuscationEnabled | true | Obfuscate numbers |
arrayObfuscationEnabled | true | Obfuscate array dimensions |
booleanObfuscationEnabled | true | Obfuscate booleans |
stringObfuscationEnabled | true | Obfuscate strings |
debugInfoStrippingEnabled | true | Strip debug info |
| Option | Default | Description |
|---|
classNamesRandom | false | true = random names per build |
classNameLength | 6 | Minimum length (1–32) |
classNamesHomoglyph | false | Cyrillic lookalikes |
classNamesInvisibleChars | false | Zero-width chars |
| Option | Default | Description |
|---|
methodNamesRandom | false | Random method names |
methodNameLength | 4 | Minimum length (1–32) |
methodNamesHomoglyph | false | Lookalike chars |
methodNamesInvisibleChars | false | Zero-width chars |
| Option | Default | Description |
|---|
fieldNamesRandom | false | Random field names |
fieldNameLength | 4 | Minimum length (1–32) |
fieldNamesHomoglyph | false | Lookalike chars |
fieldNamesInvisibleChars | false | Zero-width chars |
| Option | Default | Description |
|---|
numberKeyRandom | false | Random key pattern per value |
arrayKeyRandom | false | Random key per build |
booleanKeyRandom | false | Random key per build |
stringKeyRandom | false | Random key per build |
excludeClasses:
- com.myapp.sensitive
- org.example.api
* excludes all classes
- Prefix:
com.example excludes com.example.*