🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

pycompileo

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pycompileo

Python Code Obfuscator.

1.3.8
96

Supply Chain Security

100

Vulnerability

98

Quality

100

Maintenance

100

License

Unpopular package

Quality

This package is not very popular.

Found 1 instance in 1 package

Uses eval

Supply chain risk

Package uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.

Found 1 instance in 1 package

Maintainers
1

Pycompileo

This is a python code obfuscator. It works by compiling your code to .pyc. Which cant be easily decompiled for python version 3.9 (and higher).

Usage

The following code will take a package, obfuscate it and return a new package with .pyc files instead of .py files.

import pycompileo
pycompileo.obfuscate_package('your_module', 'obfuscated_module')

Now you can import this new obfuscated module:

import obfuscated_module

# Note that there wont be syntax highlighting
# for .pyc files. Only use when you dont need
# syntax highlighting.

obfuscated_module.super_secret_code()

Everything should really be self explanatory. You can reach out to me at ahmadchawla1432@gmail.com for additional questions.

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