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
my_code = "print('Hello, World!')"
offuscat_instance = Offuscats(script=my_code)
obfuscated_code = offuscat_instance.obfuscate()
illegible_code = offuscat_instance.make_ilisible()
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
file_path = "example.py"
offuscat_instance = Offuscats(file=file_path)
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.