Answered step by step
Verified Expert Solution
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#:
- 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
- Decrypts a message using Ceaser cipher, Transposition cipher and Vignere Cipher. The encrypted strings and keys to be used are given below:
- Ceaser Cipher encrypted string = HDUILPGT HTRJGXIN XH WPGS
- Transposition Cipher encrypted string =
IEUBOIPI
NSCLFSOB
DTTETISL
ERASWMSE
- Substitution Cipher encrypted string = SZXPVIH ZIV GVMZXRLFH
- 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 "
- 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started