Question

Task 3: Encryption Mode – ECB vs. CBC The file pic original.bmp can be downloaded from...

Task 3: Encryption Mode – ECB vs. CBC
The file pic original.bmp can be downloaded from this lab’s website, 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 (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,
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 .bmp file. We will replace the
header of the encrypted picture with that of the original picture. We can use the bless 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 new file.
$ head -c 54 p1.bmp > header
$ tail -c +55 p2.bmp > body
$ cat header body > new.bmp
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.
Select a picture of your choice, repeat the experiment above, and report your observations.

1 0
Add a comment Improve this question Transcribed image text
✔ Recommended Answer
Answer #1

if you have any doubt then please ask me without any hesitation in the comment section below , if you like my answer then please thumbs up for the answer , before giving thumbs down please discuss the question it may possible that we may understand the question different way and we can edit and change the answers if you argue, thanks :)

> Thanks for the great job. Please, what did you observe as the question stipulate?

Bigbrains Sun, Jun 6, 2021 6:15 PM

Add a comment
Know the answer?
Add Answer to:
Task 3: Encryption Mode – ECB vs. CBC The file pic original.bmp can be downloaded from...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
  • I have the code buts its not working as this below instruction can anyone help Use...

    I have the code buts its not working as this below instruction can anyone help Use the requirements from the pizza part of Assignment 6 and do the following using CSS and an internal style sheet: 1.     Your Javascript function should be in an external file (don’t forget to move it up to studentweb too) 2.     Put a red border of 300px in width around the form 3.     There should be three Div sections: header, main_body, and footer. 4.     Center the name of your...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT