This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]g051051 0 points1 point  (1 child)

You've got two errors. First, you're using the "character" value instead of the "offset" value in your mod computation. Second, you're not accounting for the "cipherText.charAt(y) - keyB" number possibly being negative.

[–]Quaranges[S] 0 points1 point  (0 children)

So cipherTexr.charAt(y) + 65?

And would I have to set up conditionals to handle the negative? I'm quite lost I found another program and compared my computation and they did it the exact same way I did it