Socket
Socket
Sign inDemoInstall

Offuscats

Package Overview
Dependencies
0
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    Offuscats

A Python obfuscator. Github official : https://github.com/TryWarzFiles/Offuscat


Maintainers
1

Readme

Offuscat Documentation

Offuscat is a Python module for obfuscating and decoding Python code using base64 encoding and character replacement.

Installation

You can install Offuscat using pip:

pip install Offuscats.py

Usage

To use Offuscat.py, you can follow the example below:

from Offuscat.Offuscats import Offuscats

# Create an instance of Offuscat with your Python code

my_code = "print('Hello, World!')"
offuscat_instance = Offuscats(script=my_code)

# Obfuscate the code

obfuscated_code = offuscat_instance.obfuscate()

# Make the code illegible

illegible_code = offuscat_instance.make_ilisible()

# Decode and execute the obfuscated code
offuscat_instance.decode()

Class: Offuscats init(self, script=None, file=None) Initialize an instance of Offuscat.

script (str, optional): The Python code to be obfuscated or decoded. file (str, optional): The file to be obfuscated. obfuscate(self) Obfuscates the code using base64 encoding.

Returns:

str: The obfuscated code. make_ilisible(self) Replaces each character in the obfuscated code with a string of special characters.

Returns:

str: The illegible code. decode(self) Decodes the obfuscated code using base64 decoding and executes it.

obfuscate_file(self) Obfuscates a Python file using base64 encoding and character replacement.

Parameters:

file (str): The file to be obfuscated. Example You can obfuscate a Python file with the following code:

from Offuscat.Offuscats import Offuscats

# Create an instance of Offuscat with a file path
file_path = "example.py"
offuscat_instance = Offuscats(file=file_path)

# Obfuscate the file
offuscat_instance.obfuscate_file()

This is a basic example of how to use the Offuscat module. You can customize it and provide more detailed explanations as needed.

Keywords

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