[Tutor] Need help with encoder & decryption keys

Kent Johnson kent37 at tds.net
Sat Mar 1 00:54:42 CET 2008

Trey Keown wrote:
> is it
> possible to decompile things within a .pyc file?

Yes, it is possible. There is a commercial service that will do this, 
for older versions of Python at least.

To figure out a secret key kept in a .pyc file it might be enough to 
disassemble functions in the module; that can be done with the standard 
dis module.

And of course if you stored the secrets as module globals all you have 
to do is import the module and print the value...


More information about the Tutor mailing list