Code In Java: Vigenere Cipher Decryption Program Your program should input the ciphertext from a file, or additionally allow the user to input from the
Code In Java: Vigenere Cipher Decryption Program
Your program should input the ciphertext from a file, or additionally allow the user to input from the keyboard, and then output the decrypted text. It should do this without seeking additional input or help from the user. Your program should first calculate the key length, and should then calculate all of the necessary mutual indices of coincidences to find the shift used in each key position.
In addition to the final decrypted text, please have your program also output clearly-labelled values found during your process of finding the key length, a table of values for the mutual indices of coincidence, and finally the original key and decrypted text. If you don't want these reams of information to interfere with your screen output, then save the labelled numeric information to a file, or have the program allow a "verbose" option.
Please note that the methods of cryptanalysis that we're using work well, but if the text is too short, or if the original plaintext itself varies much from standard English in its distribution of characters, or if the ciphertext was not encrypted with a vigenere cipher, then the algorithm may not always produce valid plaintext. By testing the values of the indices of coincidence and the mutual indices of coincidence, your program should give an indication to the user of whether or not you think the text was successfully decrypted. Also test your program on ciphertext that was *not* encrypted with a vigenere cipher.
Step by Step Solution
There are 3 Steps involved in it
Step: 1

Get step-by-step solutions from verified subject matter experts
100% Satisfaction Guaranteed-or Get a Refund!
Step: 2Unlock detailed examples and clear explanations to master concepts

Step: 3Unlock to practice, ask and learn with real-world examples

See step-by-step solutions with expert insights and AI powered tools for academic success
-
Access 30 Million+ textbook solutions.
-
Ask unlimited questions from AI Tutors.
-
Order free textbooks.
-
100% Satisfaction Guaranteed-or Get a Refund!
Claim Your Hoodie Now!

Study Smart with AI Flashcards
Access a vast library of flashcards, create your own, and experience a game-changing transformation in how you learn and retain knowledge
Explore Flashcards