Steganography code example:
Steg Example(You must link the crypto and math libraries to compile: gcc -Wall -lcrypto -lm steg.c -o steg)
Its trivial, but an example of what is possible. It takes an input file in .gif format, hides an SHA1 hash in it, then outputs to another gif.
Usage:
steg infile.gif outfile.gif message
Once you finish, check out the files:
CODE
-sh-3.00$ md5sum init.gif
bacc90ab171a1f97b6f8a51aca36f788 init.gif
-sh-3.00$ ./steg init.gif final.gif HelloWorld
GIF:
Width = 640, Height = 480
Bits per pixel: 8, Colour map = 1
Colour table size: 256.000000 bits, 32.000000 bytes.
-sh-3.00$ md5sum final.gif
624cde5c93ca3d7a1a9c64627daf9193 final.gif
-sh-3.00$ diff init.gif final.gif
Binary files init.gif and final.gif differ
Bob