🌐
GitHub
github.com › jstar88 › python-decrypter
GitHub - jstar88/python-decrypter: python command line tool to decrypt and decompile bytecode
python command line tool to decrypt and decompile bytecode, compatible with python 2.7
Starred by 21 users
Forked by 21 users
Languages   Python 100.0% | Python 100.0%
🌐
GitHub
github.com › soroco › pyce
GitHub - soroco/pyce: Encrypted Python Execution · GitHub
pyce is a library to work with encrypted Python bytecode. It adds functionality to a Python runtime by extending the way the builtin keyword import works. Currently, it assumes that convergent encryption will be used, but the library can be extended.
Starred by 201 users
Forked by 28 users
Languages   Python 88.1% | Shell 11.9%
Discussions

Encrypt Python .py file
Simply put, you don't. Obfuscating the code is possible, but doesn't really prevent anyone from modifying or seeing it, and it can be made readable again. You could create executable binaries, but often these would just be executable ZIP-files that package the Python interpreter with your code. You could transpile the code to C and compile that (Cython and Nuitka are examples), which could work, but even that won't stop the most curious individuals from decompiling it. The thing with encryption is that in order to even run an encrypted program, you need to decrypt it, which needs the decryption key. So if the users could run it, they already have the key. The option most resistant to such tampering would be to host the code on a web service and have the users use that, as they don't have access to the back-end where your Python code would run. But that doesn't work for everything. My advice? Have a license on your code that meets your needs. Then you would at least have some leverage if you need to challenge someone misusing your work. More on reddit.com
🌐 r/learnpython
52
130
October 26, 2022
python - How can I decode this bytecode into a regular .py script? - Stack Overflow
This bytecode comes from exec marshal.loads(' ') and I want to transform it into regular python script with legible source code. I can't paste all the bytecode because it weighs abou... More on stackoverflow.com
🌐 stackoverflow.com
tools - Decompiling .pyc files - Reverse Engineering Stack Exchange
Does anybody have a suggestion for (non commercial) software to decompile "byte-code" Python (.pyc) files? Everything I've found seems to break... More on reverseengineering.stackexchange.com
🌐 reverseengineering.stackexchange.com
April 10, 2013
Python Newbie - Encryption and decryption help
Conceptually, encryption and decryption have to be inverse functions (with the exception of ROT13, because the function is its own inverse.) Here's your "encryption" algorithm: encrypted += char.translate(mapping) here's your "decryption" algorithm: decrypted += char.translate(mapping) Maybe you can see, as I do, that these are the same algorithm. More on reddit.com
🌐 r/learnpython
6
0
May 16, 2023
🌐
GitHub
github.com › rumpeltux › dropboxdec
GitHub - rumpeltux/dropboxdec: Dropbox Python Bytecode Decryption Tool
Dropbox Python Bytecode Decryption Tool. Contribute to rumpeltux/dropboxdec development by creating an account on GitHub.
Starred by 30 users
Forked by 4 users
Languages   Python 100.0% | Python 100.0%
🌐
GitHub
github.com › extremecoders-re › bytecode_simplifier
GitHub - extremecoders-re/bytecode_simplifier: A generic deobfuscator for PjOrion obfuscated python scripts · GitHub
A generic deobfuscator for PjOrion obfuscated python scripts - extremecoders-re/bytecode_simplifier
Starred by 123 users
Forked by 39 users
Languages   Python
🌐
GitHub
github.com › smtkanchana66 › encryption-decryption-tool
GitHub - smtkanchana66/encryption-decryption-tool: A Python tool for encrypting and decrypting text using a simple algorithm. This tool allows users to input text for encryption or encoded values for decryption, and it uses a random key for encryption.
Please input encoded values separated by commas: 72, 108, 108, 111 Input encryption key: 4 Decrypted ASCII values: [68, 104, 104, 107] Characters: Dhhh · Feel free to fork the repository and submit pull requests with improvements or bug fixes. This project is licensed under the MIT License - see the LICENSE file for details. Python programming language for implementing the solution.
Author   smtkanchana66
🌐
GitHub
github.com › jstar88 › python-decrypter › blob › master › decrypter.py
python-decrypter/decrypter.py at master · jstar88/python-decrypter
April 30, 2020 - python command line tool to decrypt and decompile bytecode - jstar88/python-decrypter
Author   jstar88
🌐
Reddit
reddit.com › r/learnpython › encrypt python .py file
r/learnpython on Reddit: Encrypt Python .py file
October 26, 2022 -

Knowledge grows with sharing and I am truly believer. With same beliefs I shared my python script with my colleague because he wanted it. He shared with more people who made that program with commercial glaze and claimed some benefits which I found recently. Now they are asking more scripts because I have many programs to automate lots of tasks. How can I encrypt my scripts so people can use but not copy source code for own benefits.

🌐
GitHub
github.com › topics › decryption
decryption · GitHub Topics · GitHub
windows linux command-line decoder decoding command-line-tool decrypt decryption decryptor decoding-ciphers decryptor-tool ... A professional command-line tool for securing Python scripts through obfuscation, bytecode compilation, and secure backups...
Find elsewhere
🌐
GitHub
github.com › BarakAharoni › pycDcode
GitHub - BarakAharoni/pycDcode: Python PYC Bytecode Decompilation · GitHub
Python PYC Bytecode Decompilation. Contribute to BarakAharoni/pycDcode development by creating an account on GitHub.
Starred by 40 users
Forked by 4 users
Languages   Python
🌐
Jse
blog.jse.li › posts › pyc
Finding secrets by decompiling Python bytecode in public repositories | Jesse Li
May 12, 2020 - You can find it at https://github.com/veggiedefender/pyc-secret-lab/ Cached bytecode is a low-level internal performance optimization, which is the kind of thing Python was supposed to free us from having to think about! The contents of .pyc files are inscrutable without special tools like a disassembler or decompiler.
🌐
GitHub
github.com › SHAMSUNDAR20 › Encrypt-And-Decrypt-Using-Python
GitHub - SHAMSUNDAR20/Encrypt-And-Decrypt-Using-Python: This Python project provides a basic implementation for encrypting and decrypting data. It uses a chosen encryption algorithm to secure sensitive information, offering a simple and straightforward tool for developers and users who need to protect their data. · GitHub
This Python project provides a basic implementation for encrypting and decrypting data. It uses a chosen encryption algorithm to secure sensitive information, offering a simple and straightforward tool for developers and users who need to protect ...
Author   SHAMSUNDAR20
🌐
GitHub
github.com › topics › bytecode
bytecode · GitHub Topics · GitHub
A Python3 tool allowing you to obfuscate your script and camouflate the obfuscation. obfuscate bytecode marshal compiled pyc obf camouflate
🌐
GitHub
github.com › WithSecureLabs › python-exe-unpacker
GitHub - WithSecureLabs/python-exe-unpacker: A helper script for unpacking and decompiling EXEs compiled from python code. · GitHub
pyinstaller has an option that can encrypt python bytecode. This script will try to decrypt it and decompile the decrypted code.
Starred by 1K users
Forked by 351 users
Languages   Python
🌐
Stack Overflow
stackoverflow.com › questions › 57802043 › how-can-i-decode-this-bytecode-into-a-regular-py-script
python - How can I decode this bytecode into a regular .py script? - Stack Overflow
import sys from sys import stdout import uncompyle6 from uncompyle6.main import * import marshal x = marshal.loads('BYTECODE') uncompyle6.main.decompile(2.7, x, sys.stdout) Here you can check the sample working code using the Online Tool Python 2.7 Compiler.
🌐
GitHub
github.com › sulejmanbojadzic › Encryption-Decryption
GitHub - sulejmanbojadzic/Encryption-Decryption: Encryption and decryption project in python. · GitHub
Encryption and decryption project in python. Contribute to sulejmanbojadzic/Encryption-Decryption development by creating an account on GitHub.
Author   sulejmanbojadzic
🌐
GitHub
github.com › zrax › pycdc
GitHub - zrax/pycdc: C++ python bytecode disassembler and decompiler · GitHub
C++ python bytecode disassembler and decompiler. Contribute to zrax/pycdc development by creating an account on GitHub.
Starred by 4.4K users
Forked by 825 users
Languages   C++ 84.5% | Python 14.9%
🌐
Maerih
maerih.github.io › posts › Python-bytecode
ByteCode Using Python | Maerih
September 28, 2025 - Just paste it through a decode method and presto, there’s your data. I will show how to do this in Python, but sometimes it’s more practical to use the base64 binary on Linux/MacOS systems, or for the more Microsoft-leaning among us, [Convert]::ToBase64String($SomeBytestringStoredAsVariable).
🌐
GitHub
github.com › bobthebot101 › Encrypt-Decrypt-Python
GitHub - bobthebot101/Encrypt-Decrypt-Python: Encrypt and Decrypt Text
Python: 2 Options · Simple pyhton3 ... ' Enter Encrypt/Decryp key (make one up) Encrypyed Message output · Decrypt · Run the Decrypt.py File ·...
Starred by 3 users
Forked by 4 users
Languages   Python 100.0% | Python 100.0%
🌐
Quarkslab
blog.quarkslab.com › building-an-obfuscated-python-interpreter-we-need-more-opcodes.html
Building an obfuscated Python interpreter: we need more opcodes - Quarkslab's blog
Extending Python's opcode through the aggregation of several opcodes in a new one provides many benefits: the resulting bytecode is slightly smaller: less disk usage! the resulting bytecode is slightly faster: less cpu usage! the resulting bytecode is slightly obfuscated: more funz! The interpreter patch is available here: https://gist.github.com/serge-sans-paille/71a4b1e656d70ae94bb4