Modernised Python obfuscator that wraps source code in a hardened loader featuring multi-layer symmetric encryption, optional binary compilation and runtime self-defence mechanisms.
- Quad-layer payload encryption (AES-GCM → ChaCha20 → Salsa20 → XOR stream)
- Entropy-rich key derivation with optional GitHub token mixing
- Runtime anti-debugging and sandbox heuristics
- Optional GitHub Gist validation to restrict one-time execution
- Configurable usage limit and time-bomb guardrails
- Optional Nuitka compilation with timeout controls
pip install pycryptodome requests psutil nuitkaFor development and linting extras use pip install -e .[dev] after cloning.
cerberus -i example.py -o protected.pyAdd optional guards:
cerberus -i example.py -o protected.py --time-bomb 2025-12-31 --usage-limit 10
cerberus -i example.py -o protected.py --token $GITHUB_TOKEN
cerberus -i example.py -o protected.py --binary- Configuration (
cerberus.config) validates paths and guard rails. - Entropy material mixes random bytes and optional GitHub token.
- Quad layer cipher handles encryption/decryption with scrypt derived keys.
- Loader template embeds runtime checks (anti-debug + sandbox + usage limits).
- CLI provides thin wrapper around the obfuscation API.
- Formatting and linting:
pip install -e .[dev]then runruff check .andmypy . - Tests (to add): run
pytest - Package build:
python -m build
MIT © gvoze32