Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

python-obfuscator

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

python-obfuscator

It's a python obfuscator.

  • 0.0.2
  • PyPI
  • Socket score

Maintainers
1

Python-Obfuscator

One night I got bored of writing good code, so I made good code to make bad code.

GitHub release (latest by date) Downloads Linkedin

Consider sponsoring me here

Installing

pip install python-obfuscator

Quickstart

Print out obfuscated code

pyobfuscate -i your_file.py

Apply changes to the input file

pyobfuscate -i your_file.py -r True

More Detailed Documentation

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

Example Obfuscated Code

Input

y = input("what's your favorite number")

user_value = int(y)
print("{} that's a great number!".format(user_value))

With pyobfuscate -i file.py

With --one-liner True

Built With

  • Python 3.7 - The web framework used

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Keywords

FAQs


Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc