|
How Stego Online Works |
||||||||||||||||||||||||||||
The RGB Color Cube |
The RGB Color ModelIn the RGB color model used by GIF images, colors are described by a set of three values that range from 0 to 255. The first value is for red, the second is for green, and the third is for blue. The higher the number, the stronger the color. Some Primary RGB Colors
In the RGB color model there are a total of 256 x 256 x 256 = 16,777,216 possible colors. |
||||||||||||||||||||||||||||
A Sample Image The same image up close |
Painting by NumbersA palette is a list of the RGB colors used in an image. Most GIF files on the web today use an 8-bit palette. This means that of all the 16,777,216 possible colors, there are only 256 RGB colors in the image, because 8-bit binary number can only take on 256 distinct values. The image can be thought of as a grid with an index into the palette in each grid cell.The index is an 8 bit binary number, a string of 8 bits that can range from 0 to 255.The grid cells are called pixels Some Examples of 8 bit binary numbers
The bit that is furthest to the right in a binary number is called the least significant bit because changing it has the least effect on the number's value. | ||||||||||||||||||||||||||||
|
First, Sort The PaletteEzStego copies the palette from the image. It rearranges the copy of the palette so that colors that are near to each other in the color model are near to each other in in the palette.This is what the first nine colors in the palette for the sample GIF image look like before and after sorting. |
||||||||||||||||||||||||||||
|
|
One bit at a timeEzStego puts the binary data of the input file into the least significant bit of pixels in the image. Here are its instructions: Find the index of the pixel's RGB color in the sorted palette. Get one bit from the input file. Replace the least significant bit of the index. Find the new RGB color that the index now points to in the sorted palette. Find the index of the new RGB color in the original palette. Change the pixel to the index of the new RGB color. |
||||||||||||||||||||||||||||
|
|
Recovering the input fileFind the index of the pixel's RGB color in the sorted palette.The least significant bit of the index came from the input file. Write it to the ouput file. |
||||||||||||||||||||||||||||
| Return to Stego Online
Stego and EzStego are (C) Romana Machado 1994,1995,1996,1997. ALL RIGHTS RESERVED. RGB Cube appears by courtesy of Conrad Hughes. |