[Solved] Vigenere Cipher Black Hawk Down
I think your calculation is wrong: You currently have encryptedLetter = (letter – firstLetterOffset) + key[position % keyLength] % 26 + firstLetterOffset by check the C operator precedence table we notice that % is evaluated before – or +, meaning that your code actually mean : encryptedLetter = (letter – firstLetterOffset) + ( key[position % … Read more