DuctTape is a tool for packaging, encrypting, and obfuscating your python scripts. It is a fork of stickytape with added encryption and obfuscation features.
- Package your python scripts into a single file
- Encrypt your python scripts using RSA
- Obfuscate your python scripts
The easiest way to install ducttape is using pip:
$ pip install pyducttape
But you can also install DuctTape from source:
$ git clone https://github.com/bpradana/ducttape.git
$ cd ducttape
$ python setup.py install
This will generate private.pem
and public.pem
in your current directory
$ ducttape --keygen
$ ducttape entrypoint.py --public-key=your_public_key.pem > encrypted.py
make sure you have private.pem
in your current directory
$ python encrypted.py
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
DuctTape is licensed under the BSD 2-Clause License
DuctTape is a fork of Michael Williamson's amazing project, stickytape