Mathematical · Codebusters event cipher
Hill (2×2)
Pairs of letters multiplied by a matrix.
The course · 8 lessons, then the final test
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
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.