BMP Images are
available in various Bit-Depths. Higher the Bit-Depth, higher will be the size
of data to hide & lower will be the chances for alteration of image
quality.
Available Bit-Depths in BMP are 1/4/8/24. Hiding DATA in an
image using 24 Bits to represent a
Pixel will be the best. But for example we will be using an Image with 1 as its Bit-Depth.
The Data to hide will be as follows:
-------------------------------------------------------------------------------------------------------------------------
"STEGO" - HIDEs Information in Images.
Specifications v 1.0
1) SupportED FILE FormaTs BMP/GIF
2) Encryption Supported
Enhancements in Next Versions:
1) Support for PNG/TIFF
2) Support for COMPRESSION
3) Better INTERFACE
"STEGO" - HIDEs Information in Images.
Specifications v 1.0
1) SupportED FILE FormaTs BMP/GIF
2) Encryption Supported
Enhancements in Next Versions:
1) Support for PNG/TIFF
2) Support for COMPRESSION
3) Better INTERFACE
-------------------------------------------------------------------------------------------------------------------------
We will convert the ASCII into
Binary Format first. The above data
in Binary will be as follows:
--------------------------------------------------------------------------------------------------------------------------
00100010010100110101010001000101010001110100111100100010001000000010
11010010000001001000010010010100010001000101011100110010000001001001
0110111001100110011011110111001001101101011000010111010001101001011011
110110111000100000011010010110111000100000010010010110110101100001011
001110110010101110011001011100000101000001010010100110111000001100101
011000110110100101100110011010010110001101100001011101000110100101101
111011011100111001100100000011101100010000000110001001011100011000000
00101000001001001100010010100100100000010100110111010101110000011100
00011011110111001001110100010001010100010000100000010001100100100101
001100010001010010000001000110011011110111001001101101011000010101010
001110011001000000100001001001101010100000010111101000111010010010100
011000001010000010010011001000101001001000000100010101101110011000110
11100100111100101110000011101000110100101101111011011100010000001010011
0111010101110000011100000110111101110010011101000110010101100100000010
100000101001000101011011100110100001100001011011100110001101100101011
011010110010101101110011101000111001100100000011010010110111000100000
010011100110010101111000011101000010000001010110011001010111001001110
011011010010110111101101110011100110011101000001010000010010011000100
101001001000000101001101110101011100000111000001101111011100100111010
000100000011001100110111101110010001000000101000001001110010001110010
11110101010001001001010001100100011000001010000010010011001000101001
001000000101001101110101011100000111000001101111011100100111010000100
000011001100110111101110010001000000100001101001111010011010101000001
01001001000101010100110101001101001001010011110100111000001010000010
01001100110010100100100000010000100110010101110100011101000110010101
1100100010000001001001010011100101010001000101010100100100011001000
00101000011010001010010001001010011010101000100010101000111010011110
01000100010000000101101001000000100100001001001010001000100010101110
0110010000001001001011011100110011001101111011100100110110101100001011
1010001101001011011110110111000100000011010010110111000100000010010010
1101101011000010110011101100101011100110010111000001010000010100101001
1011100000110010101100011011010010110011001101001011000110110000101110
1000110100101101111011011100111001100100000011101100010000000110001001
011100011000000001010000010010011000100101001001000000101001101110101
0111000001110000011011110111001001110100010001010100010000100000010001
1001001001010011000100010100100000010001100110111101110010011011010110
0001010101000111001100100000010000100100110101010000001011110100011101
001001010001100000101000001001001100100010100100100000010001010110111
00110001101110010011110010111000001110100011010010110111101101110001000
00010100110111010101110000011100000110111101110010011101000110010101100
1000000101000001010010001010110111001101000011000010110111001100011011
00101011011010110010101101110011101000111001100100000011010010110111000
10000001001110011001010111100001110100001000000101011001100101011100100
111001101101001011011110110111001110011001110100000101000001001001100010
0101001001000000101001101110101011100000111000001101111011100100111010
01000100010000000101101001000000100100001001001010001000100010101110
0110010000001001001011011100110011001101111011100100110110101100001011
1010001101001011011110110111000100000011010010110111000100000010010010
1101101011000010110011101100101011100110010111000001010000010100101001
1011100000110010101100011011010010110011001101001011000110110000101110
1000110100101101111011011100111001100100000011101100010000000110001001
011100011000000001010000010010011000100101001001000000101001101110101
0111000001110000011011110111001001110100010001010100010000100000010001
1001001001010011000100010100100000010001100110111101110010011011010110
0001010101000111001100100000010000100100110101010000001011110100011101
001001010001100000101000001001001100100010100100100000010001010110111
00110001101110010011110010111000001110100011010010110111101101110001000
00010100110111010101110000011100000110111101110010011101000110010101100
1000000101000001010010001010110111001101000011000010110111001100011011
00101011011010110010101101110011101000111001100100000011010010110111000
10000001001110011001010111100001110100001000000101011001100101011100100
111001101101001011011110110111001110011001110100000101000001001001100010
0101001001000000101001101110101011100000111000001101111011100100111010
000100000011001100110111101110010001000000101000001001110010001110010
11110101010001001001010001100100011000001010000010010011001000101001
001000000101001101110101011100000111000001101111011100100111010000100
000011001100110111101110010001000000100001101001111010011010101000001
01001001000101010100110101001101001001010011110100111000001010000010
01001100110010100100100000010000100110010101110100011101000110010101
1100100010000001001001010011100101010001000101010100100100011001000
0010100001101000101
-------------------------------------------------------------------------------------------------------------------------
Our sample BMP Image will be:
-------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------
Final O/P Image will be:
-------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------
The C Code files provided in
the end are:
- · To Convert data from ASCII to BINARY (toBinary.c)
- · To Embed Data in Image (embedBMP.c)
- · To Recover Data from Image (recBMP.c)
- · To Convert BINARY to ASCII (toAscii.c)
To embed in Image, two structures size & pad are used. Through size we
write the DATA Size into the Image.
It helps in determining the size of Data to read while Recovering Data. And through pad,
we write the padding value into the
Image. Through padding the Data is distributed evenly over the Image.
While embedding data in Image, first size
structure is written followed by the pad
structure. And similarly, while recovering
first size structure is read
& then the pad structure.
toBinary.c embedBmp.c recBmp.c toAscii.c
toBinary.c embedBmp.c recBmp.c toAscii.c
