SpanishBoy
SpanishBoy

Reputation: 2215

How obfuscate python bytecode with Pyinstaller 3.0

I am trying to figure out how I can obfuscate python bytecode with new PyInstaller.

c:\Anaconda32\envs\myenv\Scripts\pyinstaller.exe --distpath=./dist/win32 --workpath=./build/win32 --uac-admin --uac-uiaccess --key=MYKEY app.spec

However after building, I still hack the sources with PyInstaller Exe Rebuilder as shown here:

enter image description here

Upvotes: 4

Views: 15513

Answers (2)

Den Pat
Den Pat

Reputation: 1254

Just use --key flag from pyinstaller: https://pyinstaller.readthedocs.io/en/latest/usage.html#encrypting

Upvotes: 0

pentestor
pentestor

Reputation: 109

for more security you can use pyarmor and pyinstaller lib

use command:

  1. pip install pyarmor
  2. pip install pyinstaller
  3. pyarmor pack filename.py

Upvotes: 10

Related Questions