Question: 1a. Using Python or Matlab, write a program to encrypt plaintext into cipher using the Hill cipher. Getting started: 1. Choose and use a 3
1a. Using Python or Matlab, write a program to encrypt plaintext into cipher using the Hill cipher.
Getting started:
1. Choose and use a 3 by 3 matrix representing the encryption key (Note: Make sure the matrix has an inverse.).
2. Iterate over each character of the plain text:
1. If the character is alphabet:
i. Calculate the position/index of the character in the 0-25 range.
ii. Find the character at the new position.
iii. Replace the current letter with this new character.
2. Else, If the character is not an alphabet, ignore the character, and move to the next position in the plaintext. with no change.
3. Your program is to print or graph results
1b. Using the ciphertext you generated from 1a, write a program to decrypt ciphertext into plaintext using the Hill cipher. Your program is to print or graph results
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
