Skip to main content

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

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Offuscats-1.0.1.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Offuscats-1.0.1-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file Offuscats-1.0.1.tar.gz.

File metadata

  • Download URL: Offuscats-1.0.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for Offuscats-1.0.1.tar.gz
Algorithm Hash digest
SHA256 1cd80247709c33c9c84a9cbd00e29abfe48b25b5d0371dba920e7b8930631c55
MD5 084069704d2239008ef9c16eb11c7acd
BLAKE2b-256 b535e72ba4007dfbf45537f01ccdc7ca329f676d740f7d00110b775a202dae75

See more details on using hashes here.

File details

Details for the file Offuscats-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: Offuscats-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for Offuscats-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 95f984f17338b3384577c70d4ce42300f44aeef81129ccaf54a2518df15f9dac
MD5 2f792ab0ca37024da35886b9ae9353ce
BLAKE2b-256 adc805828c4d0aedbd9d74eb9269d27a085bb841cd61e6f0769e896fd606bfab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page