Any reliable obfurscator for Python 2.5

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Sun Apr 20 04:11:54 EDT 2008


En Sun, 20 Apr 2008 01:55:51 -0300, Banibrata Dutta <banibrata.dutta at gmail.com> escribió:

> Wanted to check if there is any known, reliable, FOSS/Libre -- Obfurscator
> for Python 2.5 code.

Why do you want to do that in the first place?
There is very few you can do to obfuscate Python code. You can't rename classes nor methods nor global variables nor argument names due to the dynamic nature of Python. All you can safely do is to remove comments and join simple statements using ;
If you remove docstrings, some things may break. Even renaming local variables isn't safe in all cases.

-- 
Gabriel Genellina




More information about the Python-list mailing list