Skip to main content

Secure-run utility for encrypted Python execution

Project description

Secure Run (sr)

Version: 0.1.0 Author: Viren
License: Proprietary © 2025

Secure Run (sr) is a Python utility designed to securely encrypt, manage, and execute Python scripts. It uses strong encryption (ChaCha20-Poly1305) combined with PBKDF2 key derivation to protect your code, while allowing scripts to be run directly from memory without exposing the plaintext on disk.


Features

  • Secure Encryption: Protect Python scripts with password-based encryption.
  • Memory-Only Execution: Run scripts securely without writing decrypted files to disk.
  • Password Management: Change the password of locked scripts safely.
  • Bundles: Group multiple scripts together and execute them as a set.
  • Plugins: Extend functionality using custom plugins. PLUGIN RUNS WITH NO SANDBOX, BE CAREFUL!
  • Backup & Restore: Create backups of all your data and restore them when needed.
  • Cloning & Renaming: Duplicate or rename locked scripts easily.
  • Memory Safety: Runtime cache zeroes decrypted data to reduce exposure in memory.
  • Cross-Platform: Works on Windows, Linux, and macOS.

Overview

Secure Run allows Python developers to encrypt their scripts so that they can be stored and shared safely. Scripts can be executed without ever exposing the source code to disk, minimizing the risk of accidental leaks or tampering. It also includes features like bundling multiple scripts, plugin support, and tools for backup, restore, renaming, and cloning.

The system ensures integrity of the scripts by using SHA256 hashes, so any tampering with the encrypted files is detected. Decrypted scripts are only held in memory and cleared automatically when no longer needed.


Security Notes

  • Encryption Method: ChaCha20-Poly1305 with PBKDF2 key derivation for secure password-based encryption.
  • Integrity Checks: SHA256 hash verification ensures scripts have not been altered.
  • Memory Safety: Decrypted scripts are stored in a runtime cache and are zeroed after use to reduce memory exposure.
  • Disclaimer: This software should only be used for legitimate purposes. The author is not responsible for misuse, damage, or loss of data.

Extending Secure Run

Plugins allow you to add custom commands or features. Secure Run automatically loads plugins stored in the designated plugin directory and registers any commands they provide. Bundles allow combining multiple scripts into a single executable workflow.


Getting Started

  1. Install the package via Python's package manager.
  2. Use the library functions to lock, run, or manage Python scripts securely.
  3. Optionally, use plugins and bundles to extend and organize your workflow.

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

securerun-0.1.0.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

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

securerun-0.1.0-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file securerun-0.1.0.tar.gz.

File metadata

  • Download URL: securerun-0.1.0.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for securerun-0.1.0.tar.gz
Algorithm Hash digest
SHA256 354186fcce1c0c12c3b9fc20735e546f09d6bc94c0aba8202198be785a4cb5ba
MD5 edf99b9db6054f721ddfad1ee78b80ce
BLAKE2b-256 3d84d15b3e22a5395f0f1da0fafd8bfc9e9b81049befa02c450428b0b46571d8

See more details on using hashes here.

File details

Details for the file securerun-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: securerun-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for securerun-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b8e78471d839ac50124a40b41f3eff0d1742cc88f79dcc049ea8132e4518d329
MD5 923130433a2682b752acae293cedf61e
BLAKE2b-256 1b6a93ee2ec9ebf7efbca6f1a7b336add59767f1e8193d7a48b14f614b0b6066

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