Hot answers tagged

1 vote
Accepted

PSET 2 problem!

The main problem is that you are using the same index, i, for the plaintext and the key. The plaintext index will increment for every character in the plaintext string, but the key index should only ...
user avatar
  • 63.1k
1 vote
Accepted

Problem with the key in vigenere

I'm not sure what you mean by "password" but, to get terms clear, I'll use "plaintext" for the message you input once the program is running and "key" as the key you enter at the command line argument....
user avatar
  • 1,677
1 vote
Accepted

Trouble with Vigenere formula

Based on the code shown, you're correct that the key isn't wrapping around. It's because there is no code to do that. Let's say that the key is "BaZ". That means that the key has a length of 3, ...
user avatar
  • 63.1k

Only top scored, non community-wiki answers of a minimum length are eligible