Browse Source

readme & sample image

master
Rafael Polo 8 years ago
parent
commit
32781b35bf
3 changed files with 11 additions and 2 deletions
  1. +9
    -0
      README.md
  2. +2
    -2
      data2png.rb
  3. BIN
      sample.png

+ 9
- 0
README.md View File

@ -0,0 +1,9 @@
Steganos
=======
http://en.wikipedia.org/wiki/Steganography
Algorithms to steganography files into images.
The concept is easy and creative: get the data from the file, convert to base64, compact and convert to hexadecimal values, so get each three chunks of hexa values to compose the image that trully represents the data file.
![1.3mb encoded PDF and zoom](http://extrapolo.com/docs/rastro.jpg)

+ 2
- 2
data2png.rb View File

@ -47,8 +47,8 @@ def encode path
data = File.read(path)
hex_encoded = data.to_b64.compact.to_hex
puts hex_encoded
puts hex_encoded.size
# puts hex_encoded
# puts hex_encoded.size
size = hex_encoded.size/6+1
dimension = get_dimensions(size)
height = dimension[0]


BIN
sample.png View File

Before After
Width: 519  |  Height: 518  |  Size: 591 KiB

Loading…
Cancel
Save