Ask Computer Network & Security Expert

Lab Assignment: Introduction to Computer and Network Security

Objective: Experiment with symmetric key encryption.

1. In this lab, we will use the openssl and GHex programs. Ensure that the programs are correctly installed on your virtual machine by running the following commands:

cct@cct-vm:$ dpkg -s openssl cct@cct-vm:$ dpkg -s ghex

If you wish to update the software installed on your VM to the latest version, you may do so with the following command (Note - you will be prompted for the cct user password to obtain elevated privileges for the software update):
cct@cct-vm:$ sudo apt-get update

If the programs are NOT installed on your VM, you may install them with the following commands:

cct@cct-vm:$ sudo apt-get install openssl cct@cct-vm:$ sudo apt-get install ghex

2. We will first experiment with openssl. All commands will be entered in the terminal. To get more information about openssl command, type "man openssl".

3. To encrypt or decrypt a file, refer the following sample commands where ciphertype, in- file, out-file, key and iv_used are replaced with the appropriate values. (">>" indicates a command to be executed; do not actually type ">>" into the terminal.) Note the differences between encrypting with the "-e" flag, and decrypting with the "-d" flag.

>> openssl enc ciphertype -e -in in-file -out out-file -K key -iv iv_used

>> openssl enc ciphertype -d -in in-file -out out-file -K key -iv iv_used

4. We first see the options when we are encrypting a file. Execute the example encryption command listed above, substituting in the following values for the respective parameters. Check with the TA if you are unsure if you are doing it correctly.

• ciphertype: -aes-128-cbc

• in-file: text.txt (create your own file with a few of lines of text)

• out-file: cipher.bin (no need to do anything; will be created automatically)

• key: 12345

• iv_used: 0123

Question 1. Copy the contents of the text.txt and cipher.bin into your report. Can you see any relationship between the two files?

Question 2. Now try creating different versions of text.txt, e.g. minor differences, very different, different characters, etc.. What can you see about the relationship between these different cipertext?

5. Now we will decrypt the file you encrypted earlier. We will use the following parameters. Make sure you can get back what you encrypted.

• ciphertext: -aes-128-cbc

• in-file: cipher.bin

• out-file: answer.txt (named something different from text.txt so as to compare)

• key: 12345

• iv_used: 0123

Question 3. Attempt to decrypt the cipher.bin using a different iv_used value. What happens to the plain text you get back? Try with different iv_used values and present the results in your report.

Question 4. What happens when you attempt to decrypt a file using the correct key and iv value, but using a different encryption mode, such as -aes-128-ecb, -aes-256-cbc, and/or -dec-cbc?

Computer Network & Security, Computer Science

  • Category:- Computer Network & Security
  • Reference No.:- M92474891

Have any Question?


Related Questions in Computer Network & Security

Security challenges in emerging networksassignment

Security Challenges in Emerging Networks Assignment Description The purpose of this assignment is to develop skills to independently think of innovation. In this assignment students will first learn how to develop knowle ...

Security challenges in emerging networksassignment

Security Challenges in Emerging Networks Assignment Description The purpose of this assignment is to develop skills to independently think of innovation. In this assignment students will first learn how to develop knowle ...

Security challenges in emerging networksassignment

Security Challenges in Emerging Networks Assignment Description The purpose of this assignment is to develop skills to independently think of innovation. In this assignment students will first learn how to develop knowle ...

Security challenges in emerging networksassignment

Security Challenges in Emerging Networks Assignment Description The purpose of this assignment is to develop skills to independently think of innovation. In this assignment students will first learn how to develop knowle ...

Advanced network design assessment - human factors in

Advanced Network Design Assessment - Human factors in network analysis and design Purpose of the assessment - This assignment is designed to assess students' knowledge and skills related to the following learning outcome ...

Advanced network design assessment - human factors in

Advanced Network Design Assessment - Human factors in network analysis and design Purpose of the assessment - This assignment is designed to assess students' knowledge and skills related to the following learning outcome ...

Assignment descriptionproject scope a typical network

Assignment Description Project Scope: A typical network layout diagram of a firm is given below for illustrative purposes only. The service requirements are enclosed. Figure. Network layout of a firm Service requirements ...

Assignment descriptionproject scope a typical network

Assignment Description Project Scope: A typical network layout diagram of a firm is given below for illustrative purposes only. The service requirements are enclosed. Figure. Network layout of a firm Service requirements ...

After reading this weeks materials please respond to two 2

After reading this week's materials, please respond to TWO (2) of the following questions. AND PROVIDE CITATION IN APA 1. Describe the differences between bus, ring, star and mesh topologies. 2. Explain the TCP/IP Model ...

The abstract should not be more than 250 words describe

The abstract should not be more than 250 words. Describe your project, focusing on research questions and research method for next stage of the project. 1. Introduction [The introduction should describe what the project ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As