Question: Write a Java program that will implement the Hill cipher using the 3 x 3 matrices shown below. The program should prompt the user

Write a Java program that will implement the Hill cipher using the 

Write a Java program that will implement the Hill cipher using the 3 x 3 matrices shown below. The program should prompt the user for a string of arbitrary length and encrypt that string. The user should be allowed to enter spaces in the string and your program should remove the spaces before encrypting the string. To test the encryption, the string should also be decoded. Have at least two methods, one to encrypt and one to decrypt. Test your code using the string "ibm" from the written homework 1. 17 17 5 4 9 15 K = [21 18 21] and K-1 [15 17 6] 2 2 19 24 0 17

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 Programming Questions!