DuctTape
DuctTape is a tool for packaging, encrypting, and obfuscating your python scripts. It is a fork of 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:
$ 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
$ ducttape --keygen
Encrypt
$ ducttape entrypoint.py --public-key=your_public_key.pem > encrypted.py
Running encrypted script
make sure you have private.pem in your current directory
$ python encrypted.py
Example
You can find an example of original script here and the ducttaped one here, 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.
$ 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
Credits
DuctTape is a fork of Michael Williamson's amazing project, stickytape
Metadata
Release files for pyducttape 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyducttape-0.0.2.tar.gz | 9.6 kB | Without provenance | Details for pyducttape-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyducttape-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for pyducttape-0.0.2-py3-none-any.whl |
Total release size: 19.8 kB
Release files / pyducttape-0.0.2.tar.gz
| Download URL | pyducttape-0.0.2.tar.gz |
|---|---|
| Size | 9.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d160585f327f8e79566752b5a12419efc24734f11008bb70694d03e633e92ce
|
|
BLAKE2b-256 checksum How to use checksums |
ccc09bfef32a3fdcd9580fd9338f482d2c46be53633edcbd1bf939c92480756d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.13
|
Release files / pyducttape-0.0.2-py3-none-any.whl
| Download URL | pyducttape-0.0.2-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ebce32ac99de2fc86eb5d677369dc0bce27e86ae301854dadc06a8e9f6b9e685
|
|
BLAKE2b-256 checksum How to use checksums |
3a5bdad4b87b90543ae20459da30a1609beef6fffbad1e56ac49389444fb0ec7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.13
|
Security for pyducttape 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.