Variables name in Byte code

Ignacio Vazquez-Abrams ignacio at openservices.net
Fri Oct 5 14:46:50 EDT 2001


On 5 Oct 2001, Kaci Tizi Ouzou wrote:

> Greetings all,
>
> I was examining python compiled code and surprisingly I could see
> clearly the names of some variables.
>
> Is there anything I could do to make Python Byte code more obscur.
> I do not want user trying to hack the code(!)
>
> Thanks

Well, you could encrypt the code object for the file then encapsulate it in a
program to decrypt it and run it with eval().

-- 
Ignacio Vazquez-Abrams  <ignacio at openservices.net>





More information about the Python-list mailing list