Cs262 programming assignment first part - in the first part


Programming Assignment

In the exciting world of information security, there is a practice where someone is able to hide data inside of another file. In recent years, agents have used this practice to hide sensitive documents within the bits of images in a way that nobody can tell something else is in there. This practice, called steganography, is used to hide data inside of other files in such a way that anyone looking at the file would never know something else is hidden inside.

Description -

In your third project, you will be writing a pair of steganography programs that will hide and extract data from images. There are two parts to this project:

First Part - In the first part, you will write a program (Stego) that will hide a binary file in a PGM formatted image. PGM files are grayscale images that encode each pixel as an 8-bit value, ranging between 0 (0x00) and 255 (0xFF). The value 0x00 represents a black pixel and 0xFF is a white pixel. The trick to hiding data inside of a picture is to change the least significant bit (LSB) of each pixel's byte. For example, if the original pixel has the value of 0xAE (10101110), we can encode a one in the LSB to turn it into 0xAF (10101111). The difference in color and brightness between a pixel with the value 0xAE and 0xAF is so tiny that a human would not see any difference! Steganography is hiding data in a way that you can't even tell anything is hidden in there.

In this first part of the project, you will be hiding a binary data file in the least significant bit of each byte of the PGM image. The binary file you are hiding is known as the payload, the original image is the cover, and the modified PGM image that contains your payload is called the stego image.

Second Part - In the second part of your project, you will write a program StegoExtract that will takethe stego image generated from the program you wrote for part one and extract the payload from it. Once the binary file is recovered, it will be identical to the original payload file.

Since we are working with binary data files for the payload, the type can be any file that will fit. As long as it is small enough, you can encode other images into this image, in addition to encoding text files.

Attachment:- Assignment Files.rar

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Cs262 programming assignment first part - in the first part
Reference No:- TGS02514972

Expected delivery within 24 Hours