Vigenere Cipher Help


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!


Did you add any lines in your 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.


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


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


Reply if you need more information