Dismissing Scanner and prompts for the vigenere cipher I have:
for(int i = 0; i < text.length(); i++){
int first = text.charAt(i);
for(int j = 0; j < key.length(); j++){
int second = key.charAt(j);
int that = first + (second % 26);
output = output + (char)that;
}
}
My idea here for the vigenere cipher is to have one for-loop capture each character of the plaintext word. Then have the second for-loop capture each letter of the keyword. Where the plaintext "first" will represent the original position of the letter. Keyword will represent each individual shift of the plaintext characters. Will this be possible?