Question: In python Create two functions, one that encrypts and one that decrypts. Write a function to encrypt a message using the Vigenere cipher. Your function
In python
Create two functions, one that encrypts and one that decrypts. Write a function to encrypt a message using the Vigenere cipher. Your function will need to take in two arguments in the parameters, a key to encrypt the message and a message to encrypt. It will return the ciphertext. Create the second function to take in the cipher text and return the original message.
The key to the Vigenre cipher is the Vigenre square. The rows shown are simple rotations of the alphabet. Each row in the table shifts the letters of the alphabet one place to the left. When a letter shifts out of the first column, it moves around to the end of the right side. Each row in the table corresponds to a different key.

The idea is to have the message we want to encode: secretmessage Alongside a word we will use to encrypt: encryptencrypt Plaint e c e t m e in S a 09 text Key t e n r To create the cipher text, match the plain text with the key: Cipher text w r e h b h e i e u r d t
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
