[Q] how to protect python program from decompilation

Leonid Gluhovsky gleonid at actcom.co.il
Sun Feb 18 12:18:54 EST 2001


Moshe Zadka <moshez at zadka.site.co.il> wrote:

> sick-of-this-question-ly y'rs, Z.

I honestly tried to locate tips on this problem before posting :)
Could you please let me know where I can find prior discussion of this?

> No it's not. No way will withstand a true guru. Note that the same goes
> for C/C++/Java.  

OK.

> Use a license.

I am not in a position to decide on this matter.  Let's say I am looking
for a way to make it prohibitively hard for the customer to decompile
the byte code.  I agree that complete protection is impossible. 

Right now we are considering the following scheme: build a Python
with opcodes in Include/opcode.h reshuffled, and without the dis module
in it; use this interpreter to byte compile our code; use its Tools/freeze
to package our program into executable and ship it to customers. 

What are the holes in this approach?  What is a better approach?

Thank you,

leonid





More information about the Python-list mailing list