Question: Encryption Mode-ECB vs. CBC The file pic original. bmp can be downloaded from course Blackboard, and it contains a simple picture. We would like

Encryption Mode-ECB vs. CBC The file pic original. bmp can be downloaded

 

Encryption Mode-ECB vs. CBC The file pic original. bmp can be downloaded from course Blackboard, and it contains a simple picture. We would like to encrypt this picture, so people without the encryption keys cannot know what is in the picture. Please encrypt the file using the ECB (Electronie Code Book) and CBC (Cipher Block Chaining) modes, and then do the following: 1. Let us treat the encrypted picture as a picture, and use a picture viewing software to display it. However, For the .bmp file, the first 54 bytes contain the header information about the picture, we have to set it correctly, so the encrypted file can be treated as a legitimate file. We will replace the header of the encrypted picture with that of the original picture. You can use a hex editor tool (already installed on our VM) to directly modify binary files. We can also use the following commands to get the header from p1.bmp, the data from p2.bmp (from offset 55 to the end of the file), and then combine the header and data together into a $ head = c 54 pl. bep > beader new file. 3 tail -c +55 p2, bap> body t cat header body > nev. bap 2. Display the encrypted picture using a picture viewing program (we have installed an image. viewer program called eog on our VM). Can you derive any useful information about the original picture from the encrypted picture? Please explain your observations.

Step by Step Solution

3.55 Rating (159 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

After encrypting the original picture using the ECB and CBC modes we modified the encrypted files by ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!