Search code examples
pythonraspberry-picompilationraspbian

Python script to execute on Raspbian (Code Protection)


I have a python script/app which is running on RPi in .py file. Now I need to share this app, but I want to protect the code.

On windows I always export it to .exe and share it in order to make it executable and protect the code (mostly using python auto-py-to-exepython auto-py-to-exe). What about Raspbian? Any suggestions?

Regards


Solution

  • The theoretical aspects if you can obfuscate python sourcecorde are already widely discussed for example in this stackoverflow question.

    If you just want to make it a little bit harder for someone to read your code compiling it as .pyc could be a solution or maybe your .exe export even runs with WINE on raspbian.