TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/pw4k/ironbrew-2/llms.txt
Use this file to discover all available pages before exploring further.
ObfuscationSettings class configures all aspects of the obfuscation process, from string encryption to control flow and VM generation parameters.
Constructor
Properties
String Encryption
Enables encryption of all string constants in the script. Encrypted strings are decrypted at runtime by the VM.
Enables selective encryption of important strings only (function names, critical constants). More targeted than
EncryptStrings.Size of the decryption table used for string encryption. Larger values increase randomness but also output size.
Control Flow Obfuscation
Enables control flow obfuscation to make the code execution path harder to follow. Applies transformations like opaque predicates and conditional bouncing.
Bytecode Processing
Enables bytecode compression to reduce the size of the serialized VM data.
Preserves original line number information in the obfuscated output. Useful for debugging but reveals code structure.
Mutation and Super Operators
Enables instruction mutation that transforms standard operations into complex equivalent forms.
Enables super operators that combine multiple instructions into single virtualized operations.
Maximum number of mini super operators to generate. Mini super operators combine 2-3 instructions.
Maximum number of mega super operators to generate. Mega super operators combine 4+ instructions.
Maximum number of instruction mutations to apply. Higher values increase obfuscation strength but also processing time.
Default Configuration
The default constructor initializes settings with these values:Usage Examples
Minimal Obfuscation
Fastest obfuscation with basic protection:Maximum Obfuscation
Strongest protection with all features enabled:Debug-Friendly Obfuscation
Preserves line information for debugging:Balanced Production Settings
Good protection with reasonable performance:Performance Considerations
Security Recommendations
For sensitive scripts, enable both
EncryptStrings and EncryptImportantStrings to protect string constants from static analysis.Source Reference
Source:IronBrew2/Obfuscator/ObfuscationSettings.cs:3