Skip to content

traitimtrongvag/Encodev2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Data Encryption V2

Overview

Data Encryption V2 is a simple yet powerful Python tool that compiles Python source files into bytecode, marshals them, and encodes them using Base85 to obfuscate the original code. The resulting script can be executed directly while keeping the source code hidden from plain view.

This project also features a visually appealing terminal interface using pystyle and rich.


Features

Source Code Obfuscation Convert Python scripts into a single-line executable form, making it hard to reverse-engineer.

Base85 Encoding Uses base64.a85encode for efficient and compact encoding.

Visual UI in Terminal Stylized terminal output using pystyle and rich.console.

Multi-Platform Support Compatible with Windows, macOS, and Linux.


How It Works

  1. Reads a Python source file.

  2. Compiles it into bytecode.

  3. Marshals the bytecode.

  4. Encodes it with Base85.

  5. Wraps it into an exec() statement.

  6. Saves the encoded version to a new file.


Directory Structure

. ├── FilesToEncrypt/ # Source files to be encoded ├── EncryptedFiles/ # Encoded output files ├── encrypt.py # Main encryption script └── README.md # Project documentation


Requirements

Install the dependencies using pip:

pip install pystyle rich

Usage

  1. Place the Python file you want to encode into the FilesToEncrypt directory.

  2. Run the script:

python Main.py
  1. Enter the name of the file when prompted (e.g., myscript.py).

  2. The encoded file will be saved in the EncryptedFiles directory with the prefix enc_.


Example

Input: myscript.py Output: EncryptedFiles/enc_myscript.py (contains obfuscated exec(...) code)


Let me know if you'd like a Vietnamese version or want this turned into an actual GitHub repo for you.

About

Program to encode file using Base85 in Python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages