Octavian Rasnita, 19.01.2011 11:31:
From: "Stefan Behnel"
Octavian Rasnita, 19.01.2011 07:10:
aren't the Pyton bytecode-compiled files considered secure enough?
Can they be easily decompiled?

Yes.

FYI, just take a look at the 'dis' module. There are also decompilers available. IIRC, one is called "decompyle".


Would it be hard to introduce the possibility of adding encryption of the
bytecode similar to what the Zend encoder does for PHP or Filter::Crypto
for Perl?

You can use an import hook to do anything you like. That includes decrypting a file and extracting a normal .pyc from it that can then be imported. However, that won't prevent users from inspecting the code at runtime if they get a handle at it (which they likely will if they try).

Stefan

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to