Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

pls You just use C language. You don't use C++or C#. Aim of the Project In this project you will first encrypt a message on

image text in transcribed

image text in transcribed

image text in transcribed

pls You just use C language. You don't use C++or C#.

Aim of the Project In this project you will first encrypt a message on an image by using the fact that the pixels of the image carry some specific data that is ordinarily a color data stored as RGB values. You will manipulate this data to hide another information in them (in this case you are expected to hide characters as ASCII values). You will be given clear instructions on how to store these data in a way that you can decrypt the image and get back the hidden message. On the second part of the project you are expected to decrypt the image and get the hidden secret message back. You will also be given clear instructions on how to get the message properly. Given Images You are given original images to hide the user-given secret message. If you successfully complete the first part, then move to the second part of the project. On the other hand, we provide you additional encrypted images in case if you would like to work on part 2 before finishing part 1. Your code must only work with the provided images below. No other images will be tested. Original Images: tiger.bmp sunflower.bmp pineapple.bmp elephant.bmp You first download them (right click on the image then save as). All 4 images are jpg formatted. However, you have to change their type as.bmp, if you want to get the rgb values of each pixel via the code that will be provided for you in the next page. Encrypted Images: You will get the rgb values of each pixel of all encrypted images in txt file. In this way, you at least can manage to do the 2nd part of this project. To download the txt files in a zip folder, click here. You will NOT check any code in this page. !!!!!! This part is not a grade matter question but essential for the graded parts. We are providing you the following code that reads an image and stores the rgb values of each pixel of this image. However, you still need to manipulate some parts in the code. Code Lines to be manipulated : line 4, line 16 line 32, line 50. Do not change the other lines. This code snippet is not valid in onlinesorular debugger since it includes file operations. Therefore, you have to install on your computer any one of the Desktop IDEs such as DEVC++ or CodeBlocks You will use this function only to get the rgb values of each pixel and you will copy the whole array into your code manually. For example, when you read the tiger image (tiger.bmp), you will get the following. {{{68, 94, 103}, {63, 90, 99}, {62, 86, 92}}, {{0, 0, 64}, {91, 100, 70}, {92, 99, 67}}, {{98, 107, 0}, {0, 87, 101}, {105, 69, 93}} In this very example (tiger.bmp), we only gave you the 3x3 left corner part of the image (Actual image contains 47x62 pixel). {68 94 103) is the rgb values for the left corner. Its adjacent pixel has the rgb values of {63 90 99} and so on. There must be stored 47x62 (width x heights) pixels and their rgb values in an array for each images. This means that the array must contain only 47x62x3 values. Hint 1: All images that were given in the previous page must be dealt with. Hint 2: You can define a multi-dimensional array to store this data in line 4. Hint 3: Copy the printed values on the command window and paste it to your first part code, directly. Do NOT delete any of the curly brackets or commas or semi colons. Hint 4: You can check whether your resultant multi-dimensional array values are true or not, in the next page. How to check the values will be explained there. Hint 5: Use unsigned char type to define multi-dimensional array, not int. This is important ! You will NOT check any code in this page. !!!!!! 1/*#include 2 #include 4 unsigned char ..... // multi-dimensional array definition. use in line 16 and line 50 5 int width, height; 6 7 int main() 8 9 imageReadwrite(); 10 printf("{"); 11 for (int x = 0; x

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Database Relational Model A Retrospective Review And Analysis

Authors: C. J. Date

1st Edition

0201612941, 978-0201612943

More Books

Students also viewed these Databases questions

Question

Understand the role of internal marketing and communications.

Answered: 1 week ago