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 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
Step: 1
![blur-text-image](https://dsd5zvtm8ll6.cloudfront.net/includes/images/document_product_info/blur-text-image.webp)
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
![blur-text-image](https://dsd5zvtm8ll6.cloudfront.net/includes/images/document_product_info/blur-subtext-image.webp)
Step: 3
![blur-text-image](https://dsd5zvtm8ll6.cloudfront.net/includes/images/document_product_info/blur-subtext-image.webp)
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started