PyInstaller Encryption --key
<p>I'm trying to understand why PyInstaller documentation states that the --key argument to encrypt Python source code can be easily extracted:</p>

<p><em>Additionally, Python bytecode can be obfuscated with AES256 by specifying an encryption key on PyInstallerâs command line. Please note that it is still very easy to extract the key and get back the original byte code, but it should prevent most forms of âcasualâ tampering.</em></p>

<p>My basic understanding of AES-256 is that if no one has the encryption key you specify, they can't extract it "easily"</p>

<p>Does anyone have better understanding ?</p>

<p>Pyinstaller optionally encrypts the python sources with a very strong method.</p>

<p>Of course without the key it is nearly impossible to extract the files.</p>

<p>BUT the sources still need to be accessed at run time or the program couldn't work (or someone would have to provide the password each time, like protected excel files for instance).</p>

<p>It means that the key lies somewhere embedded in the installed software. And since all this stuff is open source, looking at the source code tells you where PyInstaller embeds the key. Of course, it's not trivial, but not an encyption-breaking problem, just reverse engineering with, added, the source available.</p>

python pyinstaller