Friday, March 28, 2008

Programming Challenge

About.com has a Programming challenge to hide a message inside a text file.

So decided it would be fun to try....

Here's my overview from the code:


OVERVIEW:
Spaces are used as carriers to "hide" a message in a file.
Only spaces following a period are candidates for carriers.

As the file is parsed periods followed by spaces are
adjusted to the following:
.[space] = 0 bit
.[space][space] is a non carrier
.[space][space][space] = 1 bit

The message is then written as bits into the carriers distributed
sequentially in the text file.

Thus the message can be hidden at nearly any point in the text file,
and a '.'s can be skipped randomly to reduce detection.

No comments:

chris' shared items

Twitter Updates

Official blog of Chris Lee Runyan

Fastest C++ in the west.