Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 Database Migration To Azure Data Modernization For The Enterprise

Authors: Kevin Kline, Denis McDowell, Dustin Dorsey, Matt Gordon

1st Edition

1484282299, 978-1484282298

More Books

Students also viewed these Databases questions

Question

c. How is trust demonstrated?

Answered: 1 week ago

Question

Have issues been prioritized?

Answered: 1 week ago

Question

d. How will lack of trust be handled?

Answered: 1 week ago