Skip to content

AtheMathmo/ImageEncryptor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Image Encrypter

This is a simple python library for encrypting images. It uses a 2-key permutation system to biject the pixels in a given image.

It currently acts on every pixel in the image. It is entirely possible (and sensible) to have the algorithm select groups of pixels to biject - this would improve computational efficiency.

For example. We can take the following image of a daisy:

Daisy

And we can encrypt it to get:

Encrypted_daisy

This is currently a very minimalistic shell of an idea. I wrote the code during a 9 hour flight to San Francisco. Hopefully very soon I can add a slightly nicer structure and some more features!

Requirements

Install Pillow (PIL) python module by running

pip install Pillow

Usage

The module can be installed by running:

python setup.py install

And then used like this:

python ImageEncryptor key1 key2 [-e <rawfile>] [-d <encryptedfile>]

The keys should be large integers. The images must be mutated in a lossless format. So the encrypted file will be saved as a .png and any decrypted files should be in this format.

About

Simple python program to encrypt images.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages