0Pricing
Cryptology Academy · Lesson

Modular Arithmetic Basics

Understand clock arithmetic and why it is central to cryptography.

Welcome

Modular arithmetic — sometimes called 'clock arithmetic' — is the mathematical foundation of AES, RSA, Diffie-Hellman, and nearly every modern cipher.

What Is Modulo?

a mod m is the remainder when a is divided by m. 17 mod 5 = 2 (because 17 = 3×5 + 2). In Python: 17 % 5 == 2.

All lessons in this course

  1. Binary & Hexadecimal Fundamentals
  2. Modular Arithmetic Basics
  3. Prime Numbers & Factorization
  4. GCD, Euler's Totient & Number Theory Intro
← Back to Cryptology Academy