Skip to main content

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

Metadata

Release files for photocrypt 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for photocrypt 0.0.8
File Size Uploaded
photocrypt-0.0.8.tar.gz 13.2 kB Details

Release files / photocrypt-0.0.8.tar.gz

Download URL photocrypt-0.0.8.tar.gz
Size 13.2 kB
Tags Source
SHA-256 checksum
How to use checksums
60c97c098f2ba3a9756c34816fa5578d30feb5bf6fe3b7128575678b6c1af5c2
BLAKE2b-256 checksum
How to use checksums
1f3b686a895b87c557f6356e7cff29be72b18ea9c6766bb03127273a3a9b7000
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

Release history Release notifications | RSS feed

This release

0.0.8 This release

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page