encode/decode any file into a PNG image and vice-versa
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Rafael Polo cf597b756f moved coffee script modules to its path 8 years ago
coffeescript rename files 8 years ago
.gitignore moved coffee script modules to its path 8 years ago
README.md Update README.md 8 years ago

README.md

Steganos

The concept is easy and creative: get the data from the file, encode into base64, compact and encode into hexadecimal values, so get each three chunks of hexa values to compose the pixels colors that represents the file as an encoded PNG image so you can reverse and decode it later as the original file.

This was a prove of concept so I could upload 6GB of videos and PDFs to Flickr as images.

1.3mb encoded PDF and zoom

Simple text encoding sample:

1) "extrapolo".to_b64
 => "ZXh0cmFwb2xv\n" 
 
2) "extrapolo".to_b64.compact
 => "x\xDA\x8B\x8A\xC80H\xCEu+O2\xAA(\xE3\x02\0\x1F\xBE\x04d" 
 
3) "extrapolo".to_b64.compact.to_hex
 => "78da8b8ac83048ce752b4f32aa28e302001fbe0464" 
 
4) final 7 hexa color pixels to represent "extrapolo" data as image
 => #78da8b #8ac830 #48ce75 #2b4f32 #aa28e3 #02001f #be0464

More: http://en.wikipedia.org/wiki/Steganography