I have two words, which I suppose to encrypt. The encryption is Vigenere: do addition of two chars,
and if addition result bigger than 26 do mod operation, and
you should get encrypted char.
The problem is when I have shorter keyword.
Let's suppose that words are:
Message - counts 7 chars
keys - counts 4 chars
I want to say when you come to s, start from beginning for keyword,
BUT continue to the next char in message
word. I tried to do something like this:
The error is: Array out of bounds: 4. I suppose this happends because first for is in while.
I don't know how to refer to the next char array for message,
and to add keyword chars from beginning.
Please help me with this.
Thank You!