Decodeling

Mathematical · Codebusters event cipher

Hill (2×2)

Pairs of letters multiplied by a matrix.

The course · 8 lessons, then the final test

  1. 01What is Hill (2×2)?

    Pairs of letters multiplied by a matrix.

    Number the letters A=0 to Z=25 and take them two at a time as a column vector. Multiply by a 2×2 key matrix mod 26 to encrypt. To decrypt, multiply by the inverse matrix: swap the diagonal, negate the other two entries, and multiply by the inverse of the determinant mod 26. An odd-length message is padded with Z.

    Plaintext
    MEET AT NOON
    Key
    Encryption matrix [3 3; 2 5], decryption matrix [15 17; 20 9]
    Ciphertext
    WSRZF RDSDP
  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.