🔐 PYTHON ENCRYPTER
Lock your Python code. Decide who gets to run it.
You send this bot a .py file or a whole .zip project.
It sends you back a LOCKED file that you can hand to anyone.
When that file runs on their machine, YOU get an
Approve / Reject button on Telegram.
Nothing runs until you tap Approve.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✨ WHAT IT DOES
🔒 Locks your code — the key is never inside the file you give away
📲 Asks you first — every run sends you an Approve / Reject button
⏱️ 30-second window — no answer means it stops by itself
🚫 Kill switch — ban a user or delete the key, their file dies
⏳ Auto expiry — every licence ends by itself after 7 days
📊 Daily quota — 5 files per user per day, you can change it
📦 Whole folders — send a .zip and every file inside gets locked
🛠️ Admin panel — status, bans, limits, broadcast, all from chat
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ HOW IT WORKS
1. Send your project to the bot
2. Bot locks it and gives you the protected file
3. Customer runs it → you get a Telegram button
4. You tap Approve → it runs. You tap Reject → it stops.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📦 WHAT'S INSIDE
bot.py Telegram bot — upload, locking, admin panel
api/
index.py API server — approval and key delivery
database.py Firebase database connection
models.py Database structure
.env.example Settings template (fill in your own)
README.md Full setup guide
requirements.txt Dependencies
vercel.json Deployment config
Setup: fill in .env, pip install -r requirements.txt, python
bot.py
Full steps are in the README.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ ADVANTAGES
• Your code stays hidden — customers get a locked file, not your source
• You decide who runs it — nothing starts without your tap
• You can switch it off anytime — ban a user, delete the key, it's dead
• Licences expire by themselves — 7 days, automatic
• Limits stop abuse — daily quota per user
• Whole projects work — not just single files
• No app to install — it runs on Telegram, on your phone
• You get a real admin panel — everything from chat
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ PROBLEMS — READ THIS, PLEASE
Honest list. Don't skip it.
❌ A skilled person can still copy your code.
Any Python file that runs on someone else's machine can be copied
by them. This is true of EVERY pure-Python tool, including this one.
This is a lock and a remote switch. It is NOT a vault.
❌ It needs internet, always.
No server means no code runs. If your server is down,
your customers are blocked too.
❌ Your server is the weak point.
If it leaks, every key is out. Rate limiting is not included.
❌ Keep your secrets secret.
Your bot token and database secret are the keys to everything.
Leak them and the whole system is open.
❌ Admin decrypt shows the key inside the Telegram chat.
Remember to delete those messages.
❌ Zipped projects can't be recovered if the database record is lost.
❌ Zipped projects can't read extra files like config.json at runtime.
❌ 7-day expiry is built in. Change it if you need longer.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💬 WHO IS THIS FOR
✅ Good for — freelancers handing over scripts, small tools you
rent out, client projects you want to switch off later.
❌ Not for — protecting something worth serious money from a
determined attacker. No client-side Python tool can do that.
If you want real protection, compile your code with Nuitka or Cython.
This tool is the layer on top that lets you control who runs it.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔐 BEFORE YOU RUN IT
• Never share your .env file
• Use a fresh bot token from
@BotFather
• Protect your Firebase with Security Rules
• Add rate limiting to the API
• Delete Telegram messages that contain keys
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Built with Python, aiogram and FastAPI.
Try it. Break it. Tell me what you find. 🚀