Mathematical · Codebusters event cipher
RSA
Public-key arithmetic with small primes.
The course · 8 lessons, then the final test
01What is RSA?
Public-key arithmetic with small primes.
Choose primes p and q. n = p·q and φ(n) = (p−1)(q−1). The public exponent e shares no factor with φ(n); the private exponent d satisfies d·e ≡ 1 (mod φ(n)). Encrypt with c = mᵉ mod n and decrypt with m = cᵈ mod n.
- Plaintext
- m = 2
- Key
- p = 3, q = 11, n = 33, e = 7, d = 3
- Ciphertext
- c = 2⁷ mod 33 = 29
02Decoding step by step
LockedCreate a free account to unlock the course.
03A full worked example
LockedCreate a free account to unlock the course.
04Spotting it on the paper
LockedCreate a free account to unlock the course.
05Solving tips and strategy
LockedCreate a free account to unlock the course.
06Breaking it without the full key
LockedCreate a free account to unlock the course.
07Common mistakes
LockedCreate a free account to unlock the course.
08At competition pace
LockedCreate a free account to unlock the course.
Review lessons
LockedUnlock these by passing all 8 lesson quizzes and the final test.
R1Review: the method on one card
LockedCreate a free account to unlock the course.
R2Review: breaking and checking
LockedCreate a free account to unlock the course.
R3Review: master's round
LockedCreate a free account to unlock the course.