Secure Python Code Manager

GitHub Repository DOI Python Version

Welcome to the Secure Python Code Manager! This tool allows you to securely share and protect your Python code using the Alpha Beta Network cloud platform. It offers advanced Python code encryption, flexible licensing solutions, and multi-level source code protection through dynamic code obfuscation in Python.

Whether you're distributing scripts to clients, collaborating with colleagues, or contributing to open-source projects, this tool ensures your intellectual property remains secure, aligning with Python code security best practices.

Version: 1.5
© 2024 αβ.net (alphabetanet.com) - Alpha Beta Network. All Rights Reserved.

Table of Contents

Key Features

How It Works

  1. Upload Your Code: Use the command-line tool to upload your Python source code to the Alpha Beta Network cloud platform. Specify allowed usage parameters such as usage period, device limits, daily usage limits, and more.
  2. Automatic Protection: The service automatically implements multi-level protection using dynamic code obfuscation in Python, resulting in a license file (protected code loader) according to your specified license parameters.
  3. Secure Distribution: Download the ready license file and use it instead of your source code. The file performs the functionality of your code without exposing the source, enabling secure code sharing.
  4. Manage Licenses: Extend, update, or revoke licenses as needed. Monitor service usage and retrieve detailed license information.
  5. Automatic Deletion: Upon license expiration, your code is automatically deleted from the cloud, ensuring continued security.

An online demo version is also available for quick testing:

Python Obfuscator Online - An online tool for cloud-based Python code obfuscation and secure usage through the Alpha Beta Network cloud platform.

Getting Started

Prerequisites

Installation

Clone the repository and navigate to the project directory:

git clone https://github.com/alphabetanetcom/secure-python-code-manager.git

cd secure-python-code-manager

Alternatively, download the secure_python_code_manager.py script directly to your local machine.

Installing Required Packages

The script requires the following Python packages:

Install them using pip:

pip install requests psutil cryptography

Ensure that you are using the correct version of pip associated with your Python 3 installation. If you are using a virtual environment, activate it before installing the packages.

Usage

The Secure Python Code Manager provides the following main functionalities:

Uploading Code and Creating a License

Upload your Python script to the cloud and create a new license for it.

Command Syntax:

python secure_python_code_manager.py --upload -f /path/to/your_script.py

Parameters:

Example:

python secure_python_code_manager.py --upload -f my_script.py

Upon successful upload, the script will provide a license key and save the protected code loader.

Updating Previously Uploaded Code

Update a previously uploaded script associated with a specific license.

Command Syntax:

python secure_python_code_manager.py --update -f /path/to/your_script.py -l LICENSE_KEY

Parameters:

Example:

python secure_python_code_manager.py --update -f my_script.py -l 1234567890

Retrieving License Information

Retrieve detailed information about your licenses, including status and usage data.

Command Syntax:

python secure_python_code_manager.py --license-info -l LICENSE_KEYS [OPTIONS]

Parameters:

Examples:

Retrieve information for a specific license:

python secure_python_code_manager.py --license-info -l 1234567890

Extend the expiration date:

python secure_python_code_manager.py --license-info -l 1234567890 --extend

Retrieving Service Usage Information

Retrieve information about your service usage, including uploaded scripts and associated licenses.

Command Syntax:

python secure_python_code_manager.py --service-usage

Parameters:

Example:

python secure_python_code_manager.py --service-usage

For a comprehensive guide on all functionalities, options, examples, and troubleshooting, please refer to the Detailed Documentation.

Application Areas

The Secure Python Code Manager can be effectively applied in the following areas:

Security and Best Practices

By implementing Python secure code transfer protocols, including end-to-end encryption and advanced cryptographic methods like asymmetric encryption and symmetric encryption, the Alpha Beta Network strives to keep code better protected during transmission. This commitment to security extends to various aspects of the platform, aiming to improve Python code security best practices.

While no system can guarantee absolute security, the Secure Python Code Manager represents an effort to empower developers to share their code with increased confidence, significantly enhancing security with new solutions that we implement.

The Local Python Code Protector Script can also be effectively used to further protect licensed source code files created by the Alpha Beta Network cloud platform. This script supports both Python source files (.py) and compiled Python files (.pyc), offering flexible options for code obfuscation and encryption.

Contact Information

If you experience issues or have questions not covered in this documentation, please contact the Alpha Beta Network Research Team.

Stay connected to receive updates, provide feedback, and get early access to extended functionality.

Licensing

This project is currently in Beta Testing and available for free.

License Agreement

© 2024 αβ.net (alphabetanet.com) - Alpha Beta Network. All Rights Reserved.

For detailed license information, please refer to the License Agreement file.

Appendix A: Installation of Required Packages

The secure_python_code_manager.py script requires the following Python packages:

Installing Packages with pip

You can install these packages using the following command:

pip install requests psutil cryptography

Ensure that you are using Python 3 and that pip is installed. If you are working within a virtual environment, make sure it is activated before installing the packages.

Appendix B: Working with Logs

The script saves operation details to a log file named license_cloud_info.log, which can be used for auditing and troubleshooting.

Description of the license_cloud_info.log File

The license_cloud_info.log file records:

How to Interpret Records in the Log

Each entry starts with a timestamp and includes the operation performed.

Example Entry for License Information Retrieval:

2023-12-01 12:00:00.

License information for license 1234567890:

Expiration date (UTC 0): 2024-01-01 00:00:00

Creation date: 2023-12-01 00:00:00

Is blocked: No

Is active: Yes

...

Example Entry for Service Usage Information:

2023-12-01 12:05:00.

Service usage information:

Total Uploads (Licenses): 2

Max Total Uploads (Licenses): 5

...

Official Repositories

You can find the official repositories for this tool at the following links: