Labyrinx is a desktop tool that takes a Python project, obfuscates the source through multiple layers, compiles it to native x64 machine code, and produces a self-contained folder your customers can just double-click. No Python install, no terminal, no dependencies to manage.
The problem
Shipping a Python app to a customer means either:
Handing over readable source code
Making them install Python and dependencies
Or spending days figuring out PyInstaller, Cython, and distribution yourself
And even with Cython alone, strings.exe still dumps every string literal. Decompilers like pycdc recover your logic structure.
Before and after
Here's what happens to a simple piece of code:
Before
API_KEY = "sk-abc123"
def connect():
return requests.post("https://api.example.com",
headers={"Authorization": f"Bearer {API_KEY}"})
Freemium (free): After name obfuscation + Cython compilation, strings.exe returns nothing readable. Variable names are randomized. Control flow is restructured. Not Fort Knox, but no longer plaintext.
Enterprise ($29/mo): The decompiler sees a single AES-256 encrypted blob. The bytecode inside runs on a custom VM with per-build randomized instruction sets. Raising the bar from casual inspection to serious reverse-engineering effort.
Protection layers
Layer Freemium Pro Enterprise
Name obfuscation ✅ ✅ ✅
Control flow flattening — ✅ ✅
String AES encryption — ✅ ✅
Module encryption (compressed) — ✅ —
Module encryption (AES-256) — — ✅
Anti-debug — — ✅
Custom VM (per-build randomized) — — ✅
License system (HWID, expiry, tiers) — ✅ ✅
Tech stack
Python 3.13 → Cython → MSVC → native x64 .pyd
Import tracer automatically discovers project dependencies and site-packages
Embedded Python 3.13 runtime in the output folder
HWID-bound signed license keys with expiry and tier enforcement
Per-build randomized VM instruction sets (Enterprise)
Runs entirely on your machine — no cloud, no phoning home
Honest limitations
No obfuscation is unbreakable. This isn't DRM — it raises the cost of reverse engineering from trivial to prohibitive. Also: Windows-only for now, Cython build times scale with project size, and dynamic imports (importlib, plugin systems) may need manual dependency configuration.
Who this is for
Developers selling desktop Python apps, distributing internal tools, or shipping software where readable source is a concern. Not for open-source projects.
Free tier is fully functional. Pro ($9/mo) and Enterprise ($29/mo) add stronger encryption and the custom VM.
Website: labyrinx-dev.github.io
Feedback welcome — what would make this useful for your projects?
Top comments (0)