Need advice for obfuscating Python code

Richard Jones rjones at ekit-inc.com
Tue Feb 26 18:06:15 EST 2002


On Wed, 27 Feb 2002 10:28, brueckd at tbye.com wrote:
>
> [snip solution which encodes the module bytecode in some manner]
>
> That should work. Of course, since the code that decrypts and loads your
> code will be visible, you probably want to use a long key (or another form
> of encryption) and install the customer importer from a C program that
> runs an embedded interpreter (installs the importer and then runs the rest
> of your program).

Or you could bundle the encoded bytecode in a C module, which makes the 
solution a lot neater.

None of this is a substitute for a good license and some manner of 
identifying the code when it is stolen. One suggestion I read from the timbot 
involves engineering in specific, obscure-case bugs.

Don't rely on smoke and mirrors to protect your IP. This applies to any 
programming language out there. Witness the number of warez sites with 
cracked programs to offer.


    Richard




More information about the Python-list mailing list