To be coded in Python - need to complete a cryptanalysis for the Vigenere cipher which has more than 1 character as a key (i.e. key length >= 1)
# Parameters:
ciphertext (string)
key (plaintext)
# Return:
Cryptanalysis of Vigenere Cipher
def cryptanalysis_vigenere(ciphertext):
key = ""
plaintext = ""
# Hint: Find the key first, the key is an English phrase
# HOWEVER: YOU CANNOT DO A DICTIONARY ATTACK TO GET THE KEY
# Next, pass this key to the decryption function which gives plaintext
plaintext = decryption_vigenere(ciphertext, key)
# Return both key and plaintext
return key, plaintext