๐Ÿ” Modulus Math Simulator

Understanding Modular Arithmetic for Cybersecurity

๐Ÿ“Š Basic Modulus Calculator

a mod m = remainder when a is divided by m
Enter values and click Calculate

โž• Modular Addition

(a + b) mod m
Enter values and click Calculate

โœ–๏ธ Modular Multiplication

(a ร— b) mod m
Enter values and click Calculate

๐Ÿ”ข Modular Exponentiation (Used in RSA)

ae mod m
Enter values and click Calculate

๐Ÿ’ก Why This Matters in Cybersecurity:

Modular exponentiation is the foundation of RSA encryption. It's easy to compute ae mod m, but extremely difficult to reverse (find e given only the result and a).

๐ŸŽฏ Quick Examples to Try

Clock Arithmetic

10 mod 3 = 1

Like hours on a clock

12-Hour Clock

15 mod 12 = 3

3 PM in 24hr format

Day of Week

100 mod 7 = 2

Days cycle every 7

Caesar Cipher

256 mod 26 = 22

Letter positions