🚀 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
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