
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
One night I got bored of writing good code, so I made good code to make bad code.
Consider sponsoring me here
pip install python-obfuscator
Print out obfuscated code
pyobfuscate -i your_file.py
Apply changes to the input file
pyobfuscate -i your_file.py -r True
You can use this as a module if you want
import python_obfuscator
obfuscator = python_obfuscator.obfuscator()
code_to_obfuscate = "print('hello world')"
You can also exclude certain techniques applied for obfuscation
import python_obfuscator
from python_obfuscator.techniques import add_random_variables
obfuscator = python_obfuscator.obfuscator()
code_to_obfuscate = "print('hello world')"
obfuscated_code = obfuscator.obfuscate(code_to_obfuscate, remove_techniques[add_random_variables])
Find a list of all techniques here
Input
y = input("what's your favorite number")
user_value = int(y)
print("{} that's a great number!".format(user_value))
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details
FAQs
It's a python obfuscator.
We found that python-obfuscator demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.