Question: I understand number one, but am struggling with the rest. Please help with what you can! Write a program (in C or Java) that can
I understand number one, but am struggling with the rest. Please help with what you can!

Write a program (in C or Java) that can implement the shift cipher. It tikes as input plain ascii text, a character "D" or *E" to denote decryption or encryption and a key k that is also a capital alphabet. It converts the text into all caps, ignores all other characters and outputs the ciphertext or plaintext as the case may be. Make sure that it prints an error if anything other than D or E is typed or if the key is not a capital alphabet. Attach the source code with your homework. Show some example inputs and outputs. The following piece of ciphertext is discovered. GOGOXDDYCOOKWYFSOVKCDGOOU If it is the shift cipher, determine the value of the key k by brute force. You can use the program from Problem 2. Show the results for each value of the key k for k = 1.2 25. Consider the following piece of ciphertext. You know that it has been encrypted using the shift cipher. Without performing an exhaustive key search, determine the key and the plaintext. Explain what you did clearly. BYNBYHYFYXZLIGNBYMWYHYMJYYXCFS If a chip can do a decryption in three clock cycles and it is clocked at 4 GH/. compute the average and worst case time (in years) required to do a brute force attack on AES with a key size of 128 bits with a known plaintext. How does this compare with the age of the earth which is estimated to be 455 billion years? If the chip speed doubles every IX months, how many years do we have to wait before this enhanced version can be broken by brate force in 24 hours? Mow do the results change if 5(100 chips run in parallel in each case? Compare the times and comment on the results Write a program (in C or Java) that can implement the shift cipher. It tikes as input plain ascii text, a character "D" or *E" to denote decryption or encryption and a key k that is also a capital alphabet. It converts the text into all caps, ignores all other characters and outputs the ciphertext or plaintext as the case may be. Make sure that it prints an error if anything other than D or E is typed or if the key is not a capital alphabet. Attach the source code with your homework. Show some example inputs and outputs. The following piece of ciphertext is discovered. GOGOXDDYCOOKWYFSOVKCDGOOU If it is the shift cipher, determine the value of the key k by brute force. You can use the program from Problem 2. Show the results for each value of the key k for k = 1.2 25. Consider the following piece of ciphertext. You know that it has been encrypted using the shift cipher. Without performing an exhaustive key search, determine the key and the plaintext. Explain what you did clearly. BYNBYHYFYXZLIGNBYMWYHYMJYYXCFS If a chip can do a decryption in three clock cycles and it is clocked at 4 GH/. compute the average and worst case time (in years) required to do a brute force attack on AES with a key size of 128 bits with a known plaintext. How does this compare with the age of the earth which is estimated to be 455 billion years? If the chip speed doubles every IX months, how many years do we have to wait before this enhanced version can be broken by brate force in 24 hours? Mow do the results change if 5(100 chips run in parallel in each case? Compare the times and comment on the results
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
