[Pythonmac-SIG] protecting source code?

Bob Ippolito bob at redivi.com
Mon Jan 30 10:10:09 CET 2006


On Jan 29, 2006, at 11:11 PM, Justin Mitchell wrote:

> Is there any way to protect (hide) the source code of the script we
> are packaging with pyapp, like py2exe and cx_freeze?

The default "protection" is about as good as it's going to get.  In  
py2app's case, everything but the main script is compiled bytecode.   
Don't put anything "important" in that.  Even if you did encrypt the  
bytecode or other such nonsense it's easy enough to jack into the  
Python interpreter and disassemble it, so it's a lost cause to do any  
more.

-bob



More information about the Pythonmac-SIG mailing list