← ENGINEERING BLOG · PACKAGING SECURITY · 7 MIN READ · NOVEMBER 29, 2026

PyInstaller Killed --key Because It Was Security Theater: What Works Now.

Thousands of commercial Python build pipelines broke when PyInstaller 6.0 removed the --key flag. Maintainers removed it for an honest reason: encrypting .pyc files only on disk while leaving standard zlib headers and decrypted module code objects in RAM stopped nobody.

Test your own Python repo in 50ms (Free): pip install -U pykevlar && pykevlar audit .
Browser Scanner →

1. Why PyInstaller Dropped --key

PyInstaller's legacy --key flag stored the AES key in plaintext inside pyimod00_crypto_key right inside the same archive! Automated extractors like pyinstxtractor-ng simply read the key module first and decrypted every .pyc automatically in two seconds.

2. What Real Binary Protection Requires in Python 3.12–3.14

pip install pykevlar
# Audit exposure first (free, zero key required):
pykevlar audit .

# Build encrypted SPZ2 + ChaCha20 Vectorcall Vault + Native C executable:
pykevlar build main.py --protect app --mix-str --enable-bcc --anti-llm -F -O dist

Compare full decompiler benchmarks on our PyArmor & PyInstaller comparison matrix or test your manifest in the Free Exposure Scanner.

Drop-in single-binary replacement for PyInstaller + --key
Compile & seal Python 3.12–3.14 apps in 1.08s. 14-day compatibility guarantee · 25% off Year 1 with code LAUNCH25.
25% off Year 1 auto-applied (LAUNCH25) · 14-day compatibility money-back guarantee.
Try Monthly — $6.75 Mo 1 → Pro Annual ($29.25/yr) Team + CI ($59.25/yr)
$pip install -U pykevlar && pykevlar audit .
MORE FROM PYKEVLAR ENGINEERING
How Attackers Dump Encrypted Python Code From RAM With Frida & PEP 669 (And How to Trap Them) Read → Shipping a Commercial PySide6 or PyQt6 Desktop App? Why Anyone Can Unpack Your .exe in 5 Seconds Read → Ditch 6-Minute QEMU Docker Builds: Cross-Compile Linux Python Binaries on Mac in 1.6 Seconds Read →