Python obfuscation

Jean-Paul Calderone exarkun at divmod.com
Wed Nov 9 14:52:53 EST 2005


On 9 Nov 2005 11:34:38 -0800, The Eternal Squire <eternalsquire at comcast.net> wrote:
>Perhaps this could be a PEP:
>
>1)  Add a system path for decryption keys.
>2)  Add a system path for optional decryptors supplied by user
>     (to satisfy US Export Control)
>3)  When importing a module try:  import routine except importation
>error : for all decryptors present for all keys present run decryptor
>upon module and retry, finally raise importation error.
>
>With PGP encryption one could encrypt the pyc's with the private key
>and sell a public key to the end user.

What's to stop someone from publishing the decrypted code online for anyone to download?

Jean-Paul



More information about the Python-list mailing list