Ecbvscbc Crypto Assignment
Ecbvscbc Crypto Assignment
Hopefully this will give a nice visual illustration of how Electronic codebook (ECB) and Cipher-block chaining
(CBC) work using AES-128 and OpenSSL. You can learn a lot from a known plain text, and repeating patterns.
Grading Submission Report: Provide screen captures with time stamps and answer the questions. Points will
be deducted if you fail to follow the instructions below.
Setup/Required Resources: Use Virginia Cyber Range Kali Linux Machine for this Assignment
Create two (2) files and name them "dawn.txt" and "noon.txt"
Use the command nano to create the files
nano dawn.txt
nano noon.txt
Note: You can used “Ctrl + X” to save from nano editor
using AES-ECB Encryption Command to Encrypt "dawn.txt" and "noon.txt" for comparison:
Question: Review and compare both ciphertext and provide feedback. What is different
Use the "ls -l" command to locate the size of the bitmap file (tux.bmp)
Save the first 54 Bytes of the bitmap header so we can use it later
head -c 54 tux.bmp > ecb.bmp
This command uses temp.bin file extracting 943754 Bytes (54B less than the original file tux.bmp file)
and append it to ecb.bmp
Question: Now, navigate to file manager. Locate the file in your home directory (/home/student/) and analyze
the ECB and CBC cipher images. Compare them to the original image (tux.bmp)
Provide feedback.