Skip to main content

A package that can encrypt and decrypt images

Project description

Photocrypt

The purpose of this project is to encrypt and decrypt photos using the AES algorithm with a one-time use 128-bit AES session key wrapped with 2048-bit RSA encryption.

Installation

Package itself

run following command: pip3 install photocrypt

With GUI Application

first, install photocrypt gui dependency using following command: pip3 install photocrypt[gui]

then clone repository: git clone https://github.com/Kullmann/RSAPhotoCryptography.git

Running

Run GUI Application

from the root directory, run following command:

python3 bin

Run CLI Application

from the root directory, run following command:

python3 bin [-h] [-i image path] [-k key path] [--encrypt] [--decrypt]

arguments:

-h, --help show this help message and exit

-i [image path] image file path to encrypt/decrypt

-k [key path] public key path

--encrypt encrypt given image using provided key

--decrypt decrypt given image using provided key

example usage:

python3 bin -i samples/tuatara.jpg -k public.pem --encrypt

python3 bin -i samples/tuatara_enc -k private.pem --decrypt

Testing

test scripts are available in tests/ directory.

run following command to run tests. python3 tests/<test name>.py

Requirements

photocrypt package requires python3.6 or above.

Known Bugs

  • Double encryption is not supported because crypto header is overwritten on encryption.

Contributors

Hosung Lee

Sean Kullmann

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

photocrypt-0.0.8.tar.gz (13.2 kB view hashes)

Uploaded Source

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