Skip to content

Encoding files into images and back again.

Notifications You must be signed in to change notification settings

e1ghtSpace/PEncode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PEncode

Encoding files in photos

Usage:

  1. Compile in netbeans (frame.java)

  2. Click on encode and choose a file (any size)

  3. Find the generated folder where you ran the program. It will be around the same size as the file, but filled with 512x512 pngs

  4. Click decode and find the folder, you will see a new file called out - [foldername], which is the decoded file

General Info:

The program uses a 512x512 RGBA png (by default), meaning it can store 512*512*4 bytes in each png (4 channels, 1 byte per channel). This totals 1048576 bytes, or exactly 1 Mebibyte (MiB) per png (slightly over 1 Megabyte).

The current version of this program allows the user to select a custom width and height for the images to be generated. This does not need to be correctly entered when decoding images back into files.

*Note the file size limit is currently ~2GB.