Home > steganograph

steganograph

Steganograph is a project mainly written in Ruby, it's free.

Hiding text in a bmp file.

=Steganography

Steganography is the art and science of writing hidden messages in such a way that no one, apart from the sender and intended recipient, suspects the existence of the message, a form of security through obscurity. {Wiki article}[http://en.wikipedia.org/wiki/Steganography]

This is a simple class to encode any message in the BMP file. It takes each bit of the message and save it in the least significant bit of the image array, so that an output image looks exactly the same as original one and have the same size.

It was a solution to puzzle #6 from puzzlenode.

=Usage

Encode:

Steganograph.encode("image.bmp", "file_with_text.txt")

Decode:

message = Steganograph.decode("image.bmp")

Previous:logger