python _binary_ code

Chris Rebert clp2 at rebertia.com
Tue Jul 14 02:00:00 EDT 2009


On Mon, Jul 13, 2009 at 10:41 PM, sanju ps<sanu1267 at gmail.com> wrote:
> Hi
>
>  Can anyone give me solution to create a python binary file (bytecode) other
> than pyc file .So my source code be secure.. I am working on ubuntu 9.04
> with python2.6.. I

PyInstaller (http://www.pyinstaller.org/) will generate a
self-contained executable, but it won't hide the bytecode (which can
be decompiled w/ decompyle).
It's generally accepted to be impossible (or at least more trouble
than it's worth) to protect Python source.

See http://stackoverflow.com/questions/261638/how-do-i-protect-python-code
for excellent and more detailed answers.

Cheers,
Chris
-- 
http://blog.rebertia.com



More information about the Python-list mailing list