The Playfair Cipher is a manual symmetric encryption technique that encrypts pairs of letters (bigrams) instead of single letters. It was invented by Charles Wheatstone in 1854 but became known as the Playfair Cipher after it was promoted by Lord Playfair. This cipher was used extensively during the World War I era for secure military communications, as it provided better security than simple substitution ciphers by addressing frequency analysis vulnerabilities.
The Playfair Cipher uses a 5x5 square grid filled with letters of the alphabet. To fit the 25 letters of the English alphabet into the grid, the letters I and J are usually combined. The plaintext is divided into pairs of letters. If a pair consists of the same letter (like "LL"), an X is inserted between them (making it "LX" in this case). If there's an odd number of letters, an X is added to the end. The pairs are then encrypted based on their positions in the grid.
Example:
Consider the keyword "MONARCHY." The grid would look like this after filling in the letters: