Question: Store the alphabet in a static array that contains only capital letters, i.e. the length of the array should be 26, and you may have

Store the alphabet in a static array that contains only capital letters, i.e. the length of the array should be 26, and you may have to convert any input text to uppercase. Your alphabet should be stored as follows, but with all the alphabet: final static char alphabet [] = {A, B, C}; You should have a method to convert a letter to an index of the alphabet array, and vice versa. our encrypting suite should have three programs: A key generator, an encryptor, and decryptor. They key generator should allow the user to generate a key file with a specified number of n values. The encrypting program should ask the user for the location of the key file and the message, and then should output a file containing the encrypted text and update the current position of the key file. The decryptor should prompt the user to specify the location of the key file and the location of the encrypted text file, and display the decrypted text. Example key file: 4 12,7,23,2,13,22,1,3,17,15,19,25,1,14,12,7,4,5,2,6,8 The first line is the current position of where to start from, and the next line is the n values. Encrypted file: 4 ORAU PV PM SIFQL The first line is the position in the key file that n values are from, and the second line is the cipher text. After encrypting the message, the key file's position will be updated to the current position. In the example above, the new key file will look like: 17 12,7,23,2,13,22,1,3,17,15,19,25,1,14,12,7,4,5,2,6,8 When the decrypting program reads the encrypted file, it knows where in the key file to start reading n values. Program will be written in Java

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!