Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help with code for ALL these programs which are below. This was all the information I was given on each of these program problems.

Need help with code for ALL these programs which are below. This was all the information I was given on each of these program problems. Do keep in mind all the code needs to be in C#:

  1. Implement a program in C# that satisfies the following:
  • Encrypts the message below using a Ceaser cipher, Transposition cipher and Vignere Cipher. The clear text is what should be encrypted
  • Clear text: This is a private encrypted message

  1. Decrypts a message using Ceaser cipher, Transposition cipher and Vignere Cipher. The encrypted strings and keys to be used are given below:
    1. Ceaser Cipher encrypted string = HDUILPGT HTRJGXIN XH WPGS
    2. Transposition Cipher encrypted string =

IEUBOIPI

NSCLFSOB

DTTETISL

ERASWMSE

  1. Substitution Cipher encrypted string = SZXPVIH ZIV GVMZXRLFH
  2. Vignere Cipher encrypted string = "LLGLV BQ QQHVG GF JUTSBLY "

Keys

  • Ceaser Cipher: 15
  • Transposition Cipher (4 lines, line = charindex mod 4)
  • Substitution Cipher: ZYXWVUTSRQPONMLKJIHGFEDCAB
  • Vignere Cipher: SECURITY

Vignere: "THERE TX SYDTM PX QWBOZRH "

  1. Implement a program in C# to sign a document. The program will be able to generate a public key pair, accept a document and compute the hash. It then encrypts the has using the private key. The program will be able to verify a signature by accepting an encrypted signature (hash) and a document. It computes the hash, decrypts the encrypted hash and compares the hashes. It reports if the document is valid or not. Note, C# provides the necessary cryptographic primitives. Use ONLY the hash and public key encryption functions, i.e. write your own digital signature functions.

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

Pro PowerShell For Database Developers

Authors: Bryan P Cafferky

1st Edition

1484205413, 9781484205419

More Books

Students also viewed these Databases questions

Question

=+2 How does the preparation and support for each type of IE vary?

Answered: 1 week ago

Question

=+What is the extent of the use of each type of IE?

Answered: 1 week ago