Decodeling

Mathematical · Codebusters event cipher

RSA

Public-key arithmetic with small primes.

The course · 8 lessons, then the final test

  1. 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
  2. 02Decoding step by step

    Locked

    Create a free account to unlock the course.

  3. 03A full worked example

    Locked

    Create a free account to unlock the course.

  4. 04Spotting it on the paper

    Locked

    Create a free account to unlock the course.

  5. 05Solving tips and strategy

    Locked

    Create a free account to unlock the course.

  6. 06Breaking it without the full key

    Locked

    Create a free account to unlock the course.

  7. 07Common mistakes

    Locked

    Create a free account to unlock the course.

  8. 08At competition pace

    Locked

    Create a free account to unlock the course.

Review lessons

Locked

Unlock these by passing all 8 lesson quizzes and the final test.

  1. R1Review: the method on one card

    Locked

    Create a free account to unlock the course.

  2. R2Review: breaking and checking

    Locked

    Create a free account to unlock the course.

  3. R3Review: master's round

    Locked

    Create a free account to unlock the course.