Skip to content
/ erebus Public

Video and Image Encryption Tool Written in MATLAB

Notifications You must be signed in to change notification settings

memburg/erebus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Erebus

Erebus is a work to help you share content on the internet and preserve your privacy.

How it works?

The algorithm is very simple, basically the rows and columns of the image are flipped (randomly). A key is created in CSV format, and from there, the rows and/or columns that were randomly selected are flipped. The number of moves is decided by the user.

It is planned to improve the algorithm in a future release.

[1] Lenna or Lena is a standard test image used in the field of image processing since 1973. It is a picture of the Swedish model Lena Forsén, shot by photographer Dwight Hooker, cropped from the centerfold of the November 1972 issue of Playboy magazine. In this example we can see what happens behind the scenes during the encryption process.

How to run?

Since Erebus is still under development, only Windows is supported; MAC and Linux will eventually be able to run this.

Windows

To encrypt an image you can run the following command:

./erebus -action protect -inputFile ./input/path/example.png -iterations 1000

To decrypt an image you can run the following command:

./erebus -action unprotect -inputFile ./input/path/example.png -keyPath ./key/path/example.csv

Results

Here are some comparisons of the same image being encrypted with a different number of iterations.

Original Encrypted (I = 1000) Encrypted (I = 2000) Encrypted (I = 5000)

Here the execution times are shown, both the generation of the key, as well as those of the encryption (3960 iterations) and decryption processes; for an image with a dimension of 640x350 (frame taken from the movie Like Minds).

Original Encryption Key Encrypted Image Decrypted Image
NA
NA 0.692811 seconds 1.623960 seconds 0.024757 seconds

Video encryption & GPU Implementation ⌛

This will come in a future release.

Documentation in Different Languages 🚧

This section is still under construction and it's gonna be released soon.

External links

  1. Lenna (Wikipedia)
  2. Like Minds (Wikipedia)