Challenges
Playfair cipher
Cryptography
Hard
Playfair cipher
Solves: 8
Playfair cipher
Author: CyberSamSU
Points
70
Playfair is a cipher invented by Charles Wheatstone in 1854. It encrypts pairs of letters (digraphs) rather than individual letters, so simple frequency analysis is much weaker against it.
A 5x5 square is constructed with the keyword (I and J are in the same cell). Key: MAXFIYKALIT.
M | A | X | F | I/J |
Y | K | L | T | B |
C | D | E | G | H |
N | O | P | Q | R |
S | U | V | W | Z |
There are three rules for each pair:
- In the same row: each letter is replaced by its right neighbor (wrapping to the first column after the last column).
- In the same column: each letter is replaced by its bottom neighbor (wrapping to the first row after the last row).
- Otherwise: a rectangle is formed, and each letter remains in its own row and moves to the column of the other letter.
In decryption, the rules are applied in the reverse direction: left instead of right, top instead of bottom.
Ciphertext (divided into pairs):
LH BA BF TE MO FX IB OM
There are no repeating double letters in the plaintext, no padding X has been added — the result is read directly. When decrypting, if the I/J cell appears, always write it as I.
Flag: BAYROQ{KL4SS1K_<ochiq_matn>}
To submit a flag, log in.