I have the Vigenere encryption portion working properly, but can't seem to figure out how to wrap around argv[1]
indexes.
My first for loop declared two int
s, i
and j
, and incremented each int
with each iteration.
I then included an if statement where if j
is greater or equal to the strlen
of argv[1]
then it would set j
back to 0
. If not, it would proceed with the encryption.
The code compiles but does not encrypt properly when the strlen
of argv[1]
is less than the input.
Can someone offer help on this?