Replies: 2 comments 9 replies
-
A PyInstaller build does not contain the Python interpreter so you won't be able to do this with or without encryption. |
Beta Was this translation helpful? Give feedback.
-
Are you sure about this? There should be no |
Beta Was this translation helpful? Give feedback.
-
I have a python script that calls other python scripts using
subprocess.Popen
. These other python scripts are located in different directories.My end goal is to make the program executable using pyinstaller, in an attempt to make the code a bit more secure.
My first question is, if I make an executable with the option
--onefile
and--key="1234567812345678"
, isn't this supposed to encrypt the python file specified inAnalysis
of.spec
file? Because when I execute the executable and go to the_MEIXXXX
directory, that python file is still there and I don't see any.pyc
or any encrypted files.My second question is, is it possible to encrypt the python files that I call with
subprocess.Popen
, so that when someone opens the_MEIXXXX
directory to see the encrypted python files instead of the.py
ones? I already add these python files ondatas
and use the temporary folder path to execute then withsubprocess
but they are not encrypted.My concern basically is that the python files are directly available for anyone that opens the temporary folder that is created at runtime, and this is the one I want to protect.
Beta Was this translation helpful? Give feedback.
All reactions