Directx995
Directx995

Reputation: 17

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

Upvotes: 0

Views: 177

Answers (2)

53RT
53RT

Reputation: 810

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.

Upvotes: 1

Nyamkhuu Buyanjargal
Nyamkhuu Buyanjargal

Reputation: 649

Python, being a byte-code-compiled interpreted language, is very difficult to lock down.

So you have to apply ordinary commercial methods.

  1. Licenses or any other something like that.
  2. Offer web based service like PaaS, SaaS

Upvotes: 1

Related Questions