sourcecode scrambler

Peter Hansen peter at engcorp.com
Wed Nov 28 19:00:15 EST 2001


Matt Gerrans wrote:
> 
> Markus <mvonehr at web.de> wrote:
> > does anyone know how to scramble my
> > python source-code?
> > I want to assign random names to all
> > variables and modules,
>
> You could alternatively deliver the pyc files instead of py files, if you are
> trying to keep your code semi-secret.

I suspect that would be far less useful.  .pyc files are quite
easy to decompile back to source, while randomizing the module
and variable names (provided the source didn't depend on certain
forms of introspection) would go farther to ensure a reader
couldn't understand the source.

-- 
----------------------
Peter Hansen, P.Eng.
peter at engcorp.com



More information about the Python-list mailing list