Socket
Socket
Sign inDemoInstall

pobfuscatory

Package Overview
Dependencies
1
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    pobfuscatory

python code obfuscator


Maintainers
1

Readme

PObfuscatory

python code obfuscator, you can obfuscate a file or an entire project.

Install

pip install pobfuscatory

Usage

Note: If your project use not built-in library, you need to install it first. The obfuscator needs to scan all modules and functions from third-party libraries to exclude the keywords.

# single file
$ python -m pobfuscatory -s ./single_file/raw/hello_world.py -t ./obfuscated

# whole project
$ python -m pobfuscatory -s ./src/pobfuscatory -t ./examples/project/obfuscated

# preserve some key (obfuscator, Keys)
$ python -m pobfuscatory -s ./src/pobfuscatory -t ./examples/project/obfuscated -e obfuscator Keys

# adjust confuse line insertion, probability (0.0~1.0), repeat number(1~)
$ python -m pobfuscatory -s ./src/pobfuscatory -t ./examples/project/obfuscated -p 0.5 -r 5
# close confuse line
$ python -m pobfuscatory -s ./src/pobfuscatory -t ./examples/project/obfuscated -p 0

# open debug log
$ python -m pobfuscatory -s ./src/pobfuscatory -t ./examples/project/obfuscated -v 1

Examples

Single file: [ raw ] [ obfuscated ]

Whole project: [ raw ] [ obfuscated ]

FAQs


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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc