An open API service indexing awesome lists of open source software.

https://github.com/waived/python-obfuscator

Randomization of variable and function names + wrapped in BASE-64 and GZIP encoding
https://github.com/waived/python-obfuscator

confuser obfuscation obfuscator python-obfuscator python3 scrambler

Last synced: 2 months ago
JSON representation

Randomization of variable and function names + wrapped in BASE-64 and GZIP encoding

Awesome Lists containing this project

README

        

/////////////////////////
/// PYTHON OBFUSCATOR ///
/////////////////////////

Overview:
Simple python script that modifies another python script, changing:

[+] Variable names
[+] Function names

Once the randomization occurs, the code is then wrapped in BASE-64
and G-ZIP encoding and saved as an output file.

Note: this script takes into consideration situational variable names, such
as "k=num" (used in the random.choice module). If said variables were to
be renamed, it may cause your script to crash. This obfuscator only randomizes
variable that have been referenced more than once. This is how it determines
what was user-declared versus a module-dependent static variable declaration.
Indentation is also left alone to ensure no errors raised upon execution.

Credits: I don't take true credit for this script as 95% was done via ChatGPT.
As far as the BASE-64/G-ZIP wrapping, that code was mine and originally
came from my previous python obfuscation script which has now been made
private and is obsolete.