Question: So im doing the Vignere Cipher and trying to encode. I am able to get the first part of the encoded text 'zilwg' but not
So im doing the Vignere Cipher and trying to encode. I am able to get the first part of the encoded text 'zilwg' but not 'aocdh'.

OUTPUT:

def vigenere_encode(strng, passwd ): alphabets 'abcdefghijklmnopqrstuvwxyz" result' pairs zip(passwd, cycle(strng)) for pair in pairs: total reduce(lambda x, y: alphabets.index(x) +alphabets.index(y), pair) result +-alphabets [total % 26] return result
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
