0

If I turn my uppercase characters into a numeric list from 0-25 and then my lowercase from 26-61 and apply modulus 26, I am anticipating converting all lowercase into uppercase letters as all the lowercase letters will create the same remainder as the uppercase:

1 % 26 is 1

27 % 26 is 1

I am missing something...?...!...

2
  • any integer number, module 26, always goes to this between 0 and 25, is what is known in mathematics as quotient, set and has interesting properties, the truth is that I do not understand well what is your question, maybe you want to explain a bit more
    – MARS
    Nov 15 '18 at 20:07
  • I think the answer to my own question is I have to apply the modulus 26 to uppercase separately from lower case.. Nov 15 '18 at 20:40
1

I would suggest that you convert both your uppercase and lowercase chars into an index value of 0-25. That is the premise of the caesar formula.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .