Problem
The file pic_original.bmp contains a simple picture. Encrypt this picture, so people without the encryption keys cannot know what is in the picture. Please encrypt the file using the ECB (Electronic Code Book) and CBC (Cipher Block Chaining) modes, and then do the following:
a) Treat the encrypted picture as a picture and use a picture viewing software to display it. For a .bmp file, the first 54 bytes contain the header information about the picture. Add the plain text header bytes to the encrypted file so it will be displayed as a legitimate .bmp file. Replace the header of the encrypted picture with that of the original picture. You can use a hex editor tool (e.g. ghex or Bless) to directly modify binary files.
b) Display the encrypted picture using any picture viewing software.
Submit:
a) Submit the ECB encrypted photo (insert the photo in your lab report document) after replacing the header so that it is viewable in an image viewer.
b) Can you derive any useful information about the original picture from the encrypted picture? Explain your observations.