Skip to main content

Package, encrypt and obfuscate Python scripts

Project description

# DuctTape DuctTape is a tool for packaging, encrypting, and obfuscating your python scripts. It is a fork of [stickytape](https://github.com/mwilliamson/stickytape) with added encryption and obfuscation features.

## Features - Package your python scripts into a single file - Encrypt your python scripts using RSA - Obfuscate your python scripts

## Installation You can install DuctTape from source: `bash $ git clone https://github.com/bpradana/ducttape.git $ cd ducttape $ python setup.py install `

## Usage ### Generate RSA key pair This will generate private.pem and public.pem in your current directory `bash $ ducttape --keygen ` ### Encrypt `bash $ ducttape entrypoint.py --public-key=your_public_key.pem > encrypted.py ` ### Running encrypted script make sure you have private.pem in your current directory `bash $ python encrypted.py `

## Example You can find an example of original script [here](example/hello) and the ducttaped one [here](example/ducttaped.py), but you won’t be able to run it because it’s encrypted with my public key.

To run the example, you need to generate your own key pair and encrypt the script with your public key. `bash $ ducttape --keygen $ ducttape example/hello/main.py --public-key=public.pem > example/ducttaped.py $ python example/ducttaped.py `

## License DuctTape is licensed under the [BSD 2-Clause License](LICENSE)

## Credits DuctTape is a fork of [Michael Williamson](https://github.com/mwilliamson)’s amazing project, [stickytape](https://github.com/mwilliamson/stickytape)

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

pyducttape-0.0.1.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

pyducttape-0.0.1-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file pyducttape-0.0.1.tar.gz.

File metadata

  • Download URL: pyducttape-0.0.1.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for pyducttape-0.0.1.tar.gz
Algorithm Hash digest
SHA256 890e41cf0f5561404e23b5330d79601620dc0961cbd3b1be9acdc1f8cae2afc2
MD5 4e62efc4e480184a06031ed76d20d326
BLAKE2b-256 810cacd7750cc754c0f78e2b39b6f09b00aea347d946c1023aaab49979dd59a7

See more details on using hashes here.

File details

Details for the file pyducttape-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pyducttape-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for pyducttape-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 369a7b07f362a476acb01c9ff024089fb24b6903dc0f0512fa2f59d74180cb3c
MD5 ba30a3934050a6e2402d5777c0ac1355
BLAKE2b-256 9a6c3bd5d5344d13e91c735f7ebd91e8b705355be2a61db4c28337ed7a1c484a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page