[Pythonmac-SIG] protecting source code?

Justin Mitchell pythonmac at justinmitchell.net
Mon Jan 30 17:16:04 CET 2006

On 1/30/06, Bob Ippolito <bob at redivi.com> wrote:
> 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.

Ah, good to know. The main script was the only one I had looked at! I
figured the rest was the same.


More information about the Pythonmac-SIG mailing list