S
S
s4q2020-08-12 08:07:17
Python
s4q, 2020-08-12 08:07:17

How to hide source compiled python code in .exe file?

There is pyinstaller which packages Python code into .exe, but there is a decompiler which can extract source code from .exe. How to make it impossible to get the code from the file?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Ronald McDonald, 2020-08-12
@s4q

This is not compilation, but packaging - the code is taken, the translator is taken and put into the exe-archive.
That is, the code can be obtained in any case.
Use an obfuscator for the code, then, even if they get it, no one will understand it.

S
Sergey Gornostaev, 2020-08-12
@sergey-gornostaev

Use real compilation with Cython or Nuitka translators. Or just write in a compiled language.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question