-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vigenere Cipher being incorrect #33
Comments
Alternate function to your function. It's not as concise as yours but it has 2 advantages, 1) Maintaining case, 2) Keeping non-alphabet (ASCII 65-90 & 97-122) characters. Vigenere2Enc(Key,Input) ;GameNtt Vigenere2Dec(Key,Input) ;GameNtt |
Even my function has an error while trying to minimize the length of the function. Well, I'll fix it and update it in a while. |
Thanks for sharing, please feel free to submit a pull request if you have a fix. Update the test cases if needed. |
LC_VigenereCipher("Testingabc","Lemon") gives a result of "EOKNBYQSVV" which is supposed to be "Eiehvykmpp" and using LC_VigenereDecipher(LC_VigenereCipher("Testingabc","Lemon"),"Lemon") gives a result of "TE9:/NGABC" which is supposed to be "Testingabc" in the ideal scenario, but since there is an error somewhere in the encrypting process, the output should be "TKYZONMGHI" when the Input to the decipher function is "EOKNBYQSVV".
https://ciphereditor.com/ to verify
The text was updated successfully, but these errors were encountered: