Implement the generic diffie-hellman scheme

Assignment Help Computer Network Security
Reference no: EM132437866

Question 1. We discussed the One-Time-Pad cipher and showed that Eve's guesses for the key are futile as she can get any reasonably looking result. Check that the second key she guessed indeed decrypts the ciphertext to "LATER". If it does, what should be the key stream to give "NEVER" instead. If it does not, correct the key so that you do get "LATER". You can (of course) write a computer program in the language of your choice to help with this.

Question 2. Implement a simple OTP cipher (in Python or any other language) that uses XOR for encryption. That is, your program should be able to read key material from a file and combine it with the plaintext data from another file to produce ciphertext, and vice versa (ciphertext to plaintext). Otherwise, design, implementation or interface details are up to you.

Question 3. Consider the RSA cipher. Assume that the following two prime numbers are selected, P=7 and Q=11. Compute N and W. Select a valid public exponent E. Given the selected public exponent E, compute the private exponent D. What are the public key and private key here? Show an example encryption and decryption with these keys.

Question 4. During the lectures we have seen how the generic RSA encryption and decryption can be done in Java using the BigInteger numbers. Big integers are the default in Python, implement the same generic RSA algorithms in Python. For this you will need the modular power operation and modular inverse. For the first, you can use pow(x,y,z) which gives you x y mod z, for the second use Google to find a suitable implementation of the Euclidean algorithm in Python.

Question 5. Following the same principles, implement the generic Diffie-Hellman scheme in Python as it was done in Java during the lectures.

Question 6. For RSA, the generic algorithm that works on (large) integers is in essence the same as the crypto library implementation. The library implementation only differs from the generic one in that it:
? pads the data automatically to provide input of a fixed bit length, and
? transforms the character/byte input into a corresponding (large) integer.

Write a Python (or Java if you prefer) program that verifies that this is indeed one and the same thing by using one method (the generic one that you developed in exercise 4) to encrypt and the other (crypto library) to decrypt some message. To make this work you need to provide your own padding (and consequently use no-padding option with the crypto library) and represent character strings as large integers.

Question 7. Come up with a method (describe it briefly) and write a program to measure RSA performance (encryption/decryption). Try different key sizes. What are your conclusions?

Reference no: EM132437866

Questions Cloud

How do you define strategy : How do you define strategy? How clear is the strategy for your organization. Can you quote the vision of your organization or school?
What is the issue price if the bonds are sold to yield : On December 31, 2018, Goa Hot Rods issued $2,000,000 of 6%, 10-year bonds. What is the issue price if the bonds are sold to yield 8%
Determining the decision-making process : You are a manager of a tire company in a large city, and you need to determine whether keeping the store open one hour longer each day will increase profits.
Implement the generic diffie-hellman scheme : Write a program to measure RSA performance (encryption/decryption). Try different key sizes. What are your conclusions - implement the generic Diffie-Hellman
What new information did you learn from your search : Analyze your state or county/city health department's website (e.g., dhhs.gov). A Google search of your city's "health profile" may also yield results.
Determining the internal or external recruitment : If you are hiring for the position of an assistant manager at a fast-food restaurant, will you use internal or external recruitment?
Compute the cost per equivalent unit for direct materials : The rebuilt engine has a 100,000-mile warranty and is purchased by auto shops, Compute the cost per equivalent unit for direct materials
Why a company would provide a training program for her : Problem: Emily has worked for Chapters Book Store as a store manager for over five years.

Reviews

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