Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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..... image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 10g SQL

Authors: Joan Casteel, Lannes Morris Murphy

1st Edition

141883629X, 9781418836290

More Books

Students also viewed these Databases questions

Question

How would your friends describe you?

Answered: 1 week ago

Question

premium company

Answered: 1 week ago

Question

1. What are the peculiarities of viruses ?

Answered: 1 week ago

Question

Describe the menstrual cycle in a woman.

Answered: 1 week ago

Question

Explain methods of metal extraction with examples.

Answered: 1 week ago

Question

How important is this to you?

Answered: 1 week ago

Question

How can I or others help?

Answered: 1 week ago

Question

Which options are of interest to you?

Answered: 1 week ago