obuscate python source code 混淆 python 源代码的小工具
Origin resource is: https://github.com/astrand/pyobfuscate
This script based on pyobfuscate project. Increasing some awesome function such as support total dir conversion.
python pyobfuscate.py -h
Usage:
pyobfuscate [options] <file>
Options:
-h, --help Print this help.
-i, --indent <num> Indentation to use. Default is 1.
-s, --seed <seed> Seed to use for name randomization. Default is
system time.
-r, --removeblanks Remove blank lines, instead of obfuscate
-k, --keepblanks Keep blank lines, instead of obfuscate
-f, --firstcomment Remove first block of comments as well
-a, --allpublic When __all__ is missing, assume everything is public.
The default is to assume nothing is public.
this command can produce a file handled after by the obfuscate handler.
this command can handle a total folder that contain python script file and output to obfuscate_output folder. the obfuscate_output folder contain all of python script after handled and others Non-python script file.
This script is for education/research purposes only. The author takes NO responsibility ay for how you choose to use any of the tools provided