Vigenere Cipher Help


#1

Hey everyone,
I am having the hardest time with my Vigenere cipher. My letters are encrypting with the key, but the spaces in my message are also using a letter from the key which is making my encryption inaccurate. Please help!


#2

Did you add any lines in your caesar.py to skip spaces and any non-alpha characters? If so, you may want to use that in your vigenere function. If not, you may want to consider that for both.


#3

No I didn’t. I’ll try that. Thank you!


#4

Before encryption check whether character is alphabet by using isalpha() function…


#5

Reply if you need more information