Do your best job of justifying your pattern

Assignment Help Computer Network Security
Reference no: EM132291880

Problem 1:
Please make yourself familiar with CTR mode encryption, using the resources above or anything else you can find.
Write a script/program/subroutine that allows you to easily do the following:

• given IV, key encoded in hex, and plaintext (as a normal ASCII string), output the result of AES-128-CTR decryption in hex
• given IV, key, and ciphertext encoded in hex, output the result of AES-128-CTR decryption (as a normal ASCII string).

The perl script uses openssl command-line tool to do the actual encryption. For example, you can do echo -n "plaintext data" | openssl enc -aes-128-ctr -K <hexkey> -iv <hexiv>

to encrypt the plaintext data (-n argument to echo suppresses trailing newline). You can use `xxd -p` and `xxd -r -p` to convert to/from hex.
AES-128-CTR is also a standard, and you are also welcome to use standard encryption libraries from whatever programming language you like. Please read ahead to see what else I'm asking you to do, and make sure you are comfortable doing it in the language of your choice (I can't actually think of a worse choice than bash).
Please show the source of your script/program, and say what is the result of encrypting plaintext "cs478" with key 5A557AC90890B2ACD59C536FE4279BBC and IV 5A557AC90890B2ACD59C536FE4279BBC.

Problem 2
Now play around with tampering the ciphertext. Generate a ciphertext under a known plaintext + IV + key. Then try removing different bytes from the beginning/middle/end of the ciphertext, and seeing what happens when the modified ciphertext is decrypted.
Explain any patterns that you are able to deduce, and show your reasoning/evidence.

Problem 3
In this problem it will be useful to view ciphertexts and plaintexts in binary. Play around and see what happens when you flip bitsin a ciphertext and then decrypt that modified ciphertexts.
Explain any patterns that you are able to deduce, and show your reasoning/evidence. Also show any code that you wrote to help understanding what's happening in binary.

Problem 4
Do your best job of justifying your pattern from the previous problem using the definition of CTR-mode decryption. Recall that CTR decryption is defined by mi=AES(k,iv+i)⊕ci. This expression involves the XOR operation, but your tampering of the ciphertext involved flipping bits. How can "flip this set of bits in c" be expressed as an XOR operation?

Problem 5
Using what you have observed, obtain "root" access to the Perl script described above. Tamper with the ciphertext in your access token, to turn it into an access token that authenticates the user "root".

Describe all your steps. What username did you use to get the initial access token? How did you tamper with the ciphertext received from the server? What was your reasoning in doing this? (refer to your reasoning in previous problems) How did you change the browser's cookie? What is the secret administrator message?

Attachment:- Encryption assignment.rar

Reference no: EM132291880

Questions Cloud

Explain what scientism is and describe arguments against it : Write a reflection about worldview and respond to following: In 250-300 words, explain what scientism is and describe two of the main arguments against it.
What is the coding system replacing the diagnostic system : What is the coding system replacing the diagnostic system? Next, identify what coding system is utilized to capture the services and procedures.
Knapsack problem using branch and bound algorithms : Can you please explain about how to solve the Knapsack problem using Branch and Bound Algorithms?
Compare at least two evidence-based treatment plans : Compare at least two evidence-based treatment plans for adults diagnosed with schizophrenia with evidence-based treatment plans for children and adolescents.
Do your best job of justifying your pattern : CS478 - Explain any patterns that you are able to deduce, and show your reasoning/evidence. Also show any code that you wrote to help understanding what's
Decision-making authority would encourage people to stay : Decision-making hierarchy. What decision-making authority would encourage people to stay?
How ebp projects can improve patient care : Your written assignment for this module is a worksheet that describes the following: An example of an evidence-based practice (EBP) project.
Impact selection of a file management system : How does the OS used and the specific applications on the system impact selection of a file management system?
Diligence of potential partner or merger-acquisition target : What are the five non-financial concerns that need special attention in the due diligence of the potential partner or merger/acquisition target?

Reviews

len2291880

4/23/2019 11:40:45 PM

In this homework we explore how unauthenticated encryption is not the right tool for session tokens. Background The script is configured to not give out an authentication token for user "root" -- but your final goal in this assignment is to obtain such an authentication token. If you are successful, the page will display a secret message.

Write a Review

Computer Network Security Questions & Answers

  An overview of wireless lan security - term paper

Computer Science or Information Technology deals with Wireless LAN Security. Wireless LAN Security is gaining importance in the recent times. This report talks about how vulnerable are wireless LAN networks without any security measures and also talk..

  Computer networks and security against hackers

This case study about a company named Magna International, a Canada based global supplier of automotive components, modules and systems. Along with the company analysis have been made in this assignment.

  New attack models

The Internet evolution is and is very fast and the Internet exposes the connected computers to attacks and the subsequent losses are in rise.

  Islamic Calligraphy

Islamic calligraphy or Arabic calligraphy is a primary form of art for Islamic visual expression and creativity.

  A comprehensive study about web-based email implementation

Conduct a comprehensive study about web-based email implementation in gmail. Optionally, you may use sniffer like wireshark or your choice to analyze the communication traffic.

  Retention policy and litigation hold notices

The purpose of this project is to provide you with an opportunity to create a document retention policy. You will also learn how to serve a litigation hold notice for an educational institute.

  Tools to enhance password protection

A report on Tools to enhance Password Protection.

  Analyse security procedures

Analyse security procedures

  Write a report on denial of service

Write a report on DENIAL OF SERVICE (DoS).

  Phising email

Phising email It is multipart, what are the two parts? The HTML part, is it inviting the recepient to click somewhere? What is the email proporting to do when the link is clicked?

  Express the shannon-hartley capacity theorem

Express the Shannon-Hartley capacity theorem in terms of where is the Energy/bit and is the psd of white noise.

  Modern symmetric encryption schemes

Pseudo-random generators, pseudo-random functions and pseudo-random permutations

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd