Questions tagged [modulo]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
9
votes
4answers
7k views

What's the point of the modulo operation in the Caesar cipher formula?

According to the problem set specification, the formula for encrypting a message using the Caesar cipher is: ci = (pi + k) % 26 I don't get why you need to do modulo 26. What does it even do here?