Question: Step by step..... Task 1: Encryption using different ciphers and modes of operation In this task, you will play with various encryption algorithms and modes

Step by step.....  Step by step..... Task 1: Encryption using different ciphers and modes

Task 1: Encryption using different ciphers and modes of operation In this task, you will play with various encryption algorithms and modes of operation. You can use the following openssl enc command to encrypt/decrypt a file. openssi ene -ciphername -e -in inputfile -out outputfile -K 1234abed -iv 1234567890 Replace ciphername with a specific cipher type, such as aes-256-cbc, aes-128-cfb, aes-192-ecb, bf-ofb, des-cfb, etc. The key and IV (initial vector) can be any hexadecimal digits (0-9, a-f), but decryption must use the same key and IV as encryption in order to recover the original file. In this task, you should try at least three different cipher/mode combinations (for example, aes-256-cbc, des-cfb, and bf-ofb). You can find the meaning of the command- line options and all the supported cipher types by typing 'man enc" or "man openssl". (Page down by pressing the space bar, page up by pressing the b key, and exit the man command by pressing the q key.) Some common options for the openssl enc command are listed below: -in -out -e -d -K -iv -[pP] input file output file encrypt decrypt key in Hex initial vector in Hex print the iv/key (then exit if -P) An example to encrypt a file openssl enc -aes-256-abc-e -in msg original.txt -out msg encrypted.txt -K 1234567890abcdef -iv abed1234 An example to decrypt a file: openssl enc -aes-256-cba -d -in msg encrypted.txt -out mag decrypted.txt -x 1234567890abodef -iv abcd1234 Use gedit to open and view msg original.txt, msg encrypted. txt, and msg decrypted.txt files. Take snapshots of your openss1 commands to show what ciphers and modes of operation you used. (Hints: You can copy-and-paste a command to the terminal window to run it)

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!