Question: 2.2 Encryption Mode - ECB vs. CBC (20 pts) The file pic original.bmp contains a simple picture. We would like to encrypt this picture, so

 2.2 Encryption Mode - ECB vs. CBC (20 pts) The file

2.2 Encryption Mode - ECB vs. CBC (20 pts) The file pic original.bmp contains a simple picture. We would like to encrypt this picture, so people without the encryption keys cannot know what is in the picture. Encrypt the file using the AES algorithm in ECB (Electronic 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, the first 54 bytes of a .bmp file contain the header information about the picture. We have to set these bytes correctly, so that the encrypted file can be treated as a legitimate .bmp file. We will replace the header of the encrypted picture with that of the original picture. You can use the ghex tool to directly modify binary files. Please provide the commands that you used to encrypt the picture in those two modes. (10 pts) 2. Display the encrypted picture using any picture viewing software. Can you derive any useful information about the original picture from the encrypted picture? Please explain your observations. (10 pts)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!