Skip to content

Steganography is the practice of concealing messages or information into an image's pixel data. This software allows you to encrypt entire books, texts, or millions of bytes of data into a single image without losing any noticeable image quality.

Notifications You must be signed in to change notification settings

zane-c/Steganography-Encryption

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Steganography-Encryption

Steganography is the practice of concealing messages or information into an image's pixel data. This software allows you to encrypt entire books, texts, or millions of bytes of data into a single image without losing any noticeable image quality. The picture will retain the information ciphered into it while looking identical to the input image. The encrypted text is compressed into the pixel data so the file size does change with ciphering.

Usage

  • Add image to the input folder to be encrypted

  • Add text that you would like to encrypt to input folder

  • change file parameters in main.java

      boolean encrypt = false;
    
      //FOR USER Encrypt
      String inImage = "input/bench_in.png";
      String inText = "input/TheTimeMachine.txt";
      String outImageLocation = "output/bench_out.png";
    
      //FOR USER decrypt
      //swap encrypt = true to false
      String toDecrypt = "output/bench_out.png";
      String outTextLocation = "output/hidden_message.txt";
    
  • Run main.java

Depending on the speed of your computer and input image/text size, encryption can take anyway from 20s to 10m. Due to the nature of iterating through an N x M pixel grid, encryption is O(n*m) run time effiency where n and m are the horizontal and vertical image dimensions.

Results

Encrypting the entire novel "The Time Machine" by H.G. Wells into this simple image of a bench takes about 2 minutes on my computer.

                             THE TIME MACHINE
                               H. G. Wells

                               Chapter I

      The Time Traveller (for so it will be convenient to speak of
  him) was expounding a recondite matter to us.  His grey eyes shone
  and twinkled, and his usually pale face was flushed and animated.
  The fire burned brightly, and the soft radiance of the
  incandescent lights in the lilies of silver caught the bubbles
  that flashed and passed in our glasses.  Our chairs, being his
  patents, embraced and caressed us rather than submitted to be sat
                               
                               ...

Before Image

Drawing

After Image

Drawing

Notice that there is no visible difference to the original image and the image that has the encrypted novel.

About

Steganography is the practice of concealing messages or information into an image's pixel data. This software allows you to encrypt entire books, texts, or millions of bytes of data into a single image without losing any noticeable image quality.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages