February 26Feb 26 Hello, I have a Python code that I converted into an EXE file. I want to prevent anyone from being able to unpack or decompile it back to its original source code. Could you please help me with this?
February 26Feb 26 Author 14 minutes ago, 555 said: Hello, I have a Python code that I converted into an EXE file. I want to prevent anyone from being able to unpack or decompile it back to its original source code. Could you please help me with this? I use https://github.com/pyinstaller
February 26Feb 26 Localization Solution I think Nuitka works better for that than PyInstaller since it can obfuscate strings, but it is more of a pain to set up. If the Python code is relatively short, you would probably be better off rewriting it in C or C++. However, if someone really wants to know what your code does, they can still just run it through a disassembler/decompiler. Edited February 26Feb 26 by jmancoder
March 1Mar 1 Author On 2/27/2026 at 3:05 AM, jmancoder said: I think Nuitka works better for that than PyInstaller since it can obfuscate strings, but it is more of a pain to set up. If the Python code is relatively short, you would probably be better off rewriting it in C or C++. However, if someone really wants to know what your code does, they can still just run it through a disassembler/decompiler. Check https://github.com/extremecoders-re/nuitka-extractor On 2/27/2026 at 3:05 AM, jmancoder said: I think Nuitka works better for that than PyInstaller since it can obfuscate strings, but it is more of a pain to set up. If the Python code is relatively short, you would probably be better off rewriting it in C or C++. However, if someone really wants to know what your code does, they can still just run it through a disassembler/decompiler. Nukita secure?
March 1Mar 1 Localization 2 minutes ago, 555 said: Check https://github.com/extremecoders-re/nuitka-extractor Nukita secure? I mean, as it says in the tool description, "A nuitka compiled executable doesn't contain pyc file. Hence this tool can only extract DLLs, shared libraries and other binary assets embedded in the executable.". So you would still have to decompile the binaries manually, at which point I don't think they would resemble the original code enough for it to matter. Are you sure the code itself is what you're worried about and not strings or assets of some sort? Because in that case, you could just encrypt them separately.
March 1Mar 1 Author 4 hours ago, jmancoder said: I mean, as it says in the tool description, "A nuitka compiled executable doesn't contain pyc file. Hence this tool can only extract DLLs, shared libraries and other binary assets embedded in the executable.". So you would still have to decompile the binaries manually, at which point I don't think they would resemble the original code enough for it to matter. Are you sure the code itself is what you're worried about and not strings or assets of some sort? Because in that case, you could just encrypt them separately. The Py code
March 3Mar 3 Author On 3/1/2026 at 11:25 PM, jmancoder said: I mean, as it says in the tool description, "A nuitka compiled executable doesn't contain pyc file. Hence this tool can only extract DLLs, shared libraries and other binary assets embedded in the executable.". So you would still have to decompile the binaries manually, at which point I don't think they would resemble the original code enough for it to matter. Are you sure the code itself is what you're worried about and not strings or assets of some sort? Because in that case, you could just encrypt them separately. Thanks
Create an account or sign in to comment