-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the Secure Python Code Manager wiki! This page provides comprehensive documentation and guidance on how to use the Secure Python Code Manager Script to securely share and protect your Python code using the Alpha Beta Network cloud platform.
Version: 1.5
© 2024 αβ.net (alphabetanet.com) - Alpha Beta Network. All Rights Reserved.
The Secure Python Code Manager is a command-line tool designed to help developers securely share and protect their 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.
This script is part of the Alpha Beta Network's suite of Python code protection tools, designed to help developers securely share Python code, implement Python code encryption, and enhance source code protection. By utilizing the Secure Python Code Manager, you adhere to Python code security best practices, ensuring your code remains secure during distribution.
Note: This project is currently in Beta Testing and available for free.
-
Secure Code Sharing: Encrypt and protect your Python scripts to prevent unauthorized access or modification, ensuring secure code sharing.
-
Source Code Protection: Utilize multi-level protection with dynamic obfuscation, enhancing source code protection.
-
Flexible Licensing: Create time-limited or device-specific licenses with customizable usage parameters.
-
Seamless Code Updates: Update your code in the cloud without requiring client-side reinstallation.
-
Revocable Access: Revoke or disable access to shared code at any time.
-
Usage Monitoring: Automated monitoring and control of suspicious activity, including usage limits and IP restrictions.
-
Python Secure Code Transfer: Ensure your code is not stored on the user's local machine, enhancing security through Python secure code transfer protocols.
-
Easy Integration: Implement the entire process in just one step using our command-line tool.
-
Cross-Platform Compatibility: The protected Python scripts maintain cross-platform functionality and can be executed on any operating system (Windows, macOS, Linux/Unix, and others) where Python 3.6+ is installed.
-
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.
-
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. This process utilizes advanced Python code encryption techniques to enhance source code protection.
-
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.
-
Manage Licenses: Extend, update, or revoke licenses as needed. Monitor service usage and retrieve detailed license information.
-
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.
http://obfuscator.alphabetanet.com/
- Python 3.6+ installed on your system.
Note: For additional security measures, consider using our Local Python Code Protector alongside the Secure Python Code Manager to further protect Python code on your local machine.
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.
The script requires the following Python packages:
-
requests
-
psutil
-
cryptography
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.
The Secure Python Code Manager provides the following main functionalities:
- Uploading Code and Creating a License
- Updating Previously Uploaded Code
- Retrieving License Information
- Retrieving Service Usage Information
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:
-
--upload
or-u
: Specifies the action to upload code. -
--file FILE_PATH
or-f FILE_PATH
: Specifies the path to the.py
file to upload.
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.
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:
-
--update
or-p
: Specifies the action to update code. -
--file FILE_PATH
or-f FILE_PATH
: Specifies the path to the.py
file to update. -
--license LICENSE_KEY
or-l LICENSE_KEY
: Specifies the license key associated with the code to update.
Example:
python secure_python_code_manager.py --update -f my_script.py -l 1234567890
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:
-
--license-info
or-i
: Specifies the action to retrieve license information. -
-l LICENSE_KEYS
or--license LICENSE_KEYS
: Specifies the license key(s) to retrieve information for. Useall
to retrieve information for all licenses. -
--extend
or-e
: (Optional) Extends the expiration date of the specified licenses by 24 hours. -
--set_hwids NUMBER
or-d NUMBER
: (Optional) Sets the maximum number of hardware IDs for the specified licenses.
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
Retrieve information about your service usage, including uploaded scripts and associated licenses.
Command Syntax:
python secure_python_code_manager.py --service-usage
Parameters:
-
--service-usage
or-s
: Specifies the action to retrieve service usage information.
Example:
python secure_python_code_manager.py --service-usage
Detailed Documentation
For a comprehensive guide on all functionalities, options, examples, and troubleshooting, please refer to the Detailed Documentation.
For an online alternative, try our Python Obfuscator Online, which provides cloud-based code obfuscation in Python and secure usage through the Alpha Beta Network platform.
The Secure Python Code Manager can be effectively applied in the following areas:
-
Commercial Distribution: Safely share Python code with clients or customers by implementing advanced Python code protection tools for sales or rentals, facilitating secure code sharing.
-
Collaborative Development: Share code securely with colleagues or team members without exposing the source code.
-
Testing and Verification: Provide intermediate versions for verification and testing, including fixing bugs and adding new functionality using seamless code updates.
-
Intellectual Property Protection: Maintain control over your code to prevent unauthorized usage or copying, preserving your intellectual property.
-
Server Infrastructure Management: Securely deploy and run protected Python scripts on rented servers (both virtual and physical), ensuring code confidentiality from both datacenter providers and end clients. This enables safe automation and configuration of client servers while protecting your proprietary code and implementation details.
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 can also be effectively used to further protect Python code 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 in Python.
If you experience issues or have questions not covered in this documentation, please contact the Alpha Beta Network Research Team.
-
Website: https://alphabetanet.com | https://αβ.net
-
Official Telegram Channel: https://t.me/alphabetanetcom
Stay connected to receive updates, provide feedback, and get early access to extended functionality.
- For more information about our Alpha Beta Network project and services, visit our Services page.
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.md file.
The secure_python_code_manager.py
script requires the following Python packages:
-
requests: For making HTTP requests to interact with the cloud service API.
-
psutil: For accessing system and hardware information.
-
cryptography: For cryptographic functions and secure communications.
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.
The script saves operation details to a log file named license_cloud_info.log
, which can be used for auditing and troubleshooting.
The license_cloud_info.log
file records:
-
Timestamps of operations.
-
Details of license information retrieved.
-
Service usage data.
-
Upload and update confirmations.
-
Any error messages encountered.
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
...
Q: How is the code I upload to the platform used?
A: Any code used by users is only used within the framework of the functions described in the project and solutions, and is automatically deleted as its use ends, including upon expiration of licenses. We do not additionally analyze the uploaded code (unless requested by the user for network debugging and technical issues) and do not bear any responsibility to network users.
Q: What is your interest in funding and developing this research project?
A: Any developer knows how much effort and time goes into developing various solutions, and having created these solutions, has an unconditional right to protect them. We use this technology for our own needs, developing secure solutions that effectively solve our tasks as developers. Open public beta testing of new technologies allows us to significantly improve technologies by expanding their functionality and implement new projects based on these technological solutions. Also, for the purpose of project self-financing and maintaining high network performance, we may add extended paid options over time.
Keywords: secure code sharing, source code protection, python code, python programming, encryption, code obfuscation python, python code encryption, share python code securely, python code protection tools, python secure code transfer, code security best practices.
For more information about our Alpha Beta Network project, please visit αβ.net.
For a comprehensive list of our tools and services, including the System Hardware ID Generator and the Python Performance Benchmark Tool, please visit our Services page.
© 2024 αβ.net (alphabetanet.com) - Alpha Beta Network. All Rights Reserved.