Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

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

Prof gs farmer friend claims that aliens made crop circles

Prof G's farmer friend claims that aliens made crop circles in his farm. Using economic theory, prove his farmer friend wrong.

Question explain the meaning of computer networkingexplain

Question: Explain the meaning of computer networking. Explain the meaning of Information and give at least three examples of it. The response must be typed, single spaced, must be in times new roman font (size 12) and mu ...

Data model development and implementationpurpose of the

Data model development and implementation Purpose of the assessment The purpose of this assignment is to develop data models and map Database System into a standard development environment to gain understanding of data m ...

From the product designed expanded as follows1 from your

From the product designed expanded as follows. 1. From your list of possible responses to the threat, choose one that you will focus on in this product. Create the requirements for your product by completely identifying ...

Wireless sensor networks wsn let users to access servers

Wireless Sensor Networks (WSN) let users to access servers, printers, and other network resources regardless of their location, within the wireless reach. This flexibility means that, for example, a user's laptop stays c ...

Compare the importance of three categories described in the

Compare the importance of three categories described in the article: 1. window of exposure, 2. full public disclosure, 3. reasonable disclosure for three types of software applications: 4. military, 5. medical, 6. educat ...

Assessment taskstarting from the logical network design

Assessment Task Starting from the logical network design that you completed in Assessment Item 1, you are required to undertake the physical design of the network taking into consideration the feedback that you received ...

Assignment - 8021q tunneling q-in-q configuration8021q

Assignment - 802.1Q Tunneling (Q-in-Q) Configuration 802.1Q tunneling (aka Q-in-Q) is a technique often used by Metro Ethernet providers as a layer 2 VPN for customers. 802.1Q (or dot1q) tunneling is pretty simple...the ...

Toms income is 480and he spends it on two goods x and y his

Tom's income is $480and he spends it on two goods, X and Y. His utility function is U = XY. Both X and Y sells for $8 per unit.   a. Use lagrangian function to calculate Tom's utility-maximizing purchases of X and Y.  b. ...

Sip encodingwhy does the session initiation protocol sip

SIP, ENCODING Why does the session initiation protocol SIP allow the sender and receiver to choose two different multimedia encoding schemes? Describe a scenario where it makes sense to use different protocols for sender ...

  • 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