Skip to content

Playfair Cipher

Encrypt and decrypt text with a 5x5 Playfair key square, digraph rules, and filler handling.

Updated

What is the Playfair Cipher?

How it works

Examples

Classic Playfair Encryption

Keyword: PLAYFAIR EXAMPLE | Plaintext: Hide the gold in the tree stump
BM OD ZB XD NA BE KU DM UI XM MO UV IF

Decrypt Playfair Ciphertext

Keyword: PLAYFAIR EXAMPLE | Ciphertext: BMODZBXDNABEKUDMUIXMMOUVIF
HI DE TH EG OL DI NT HE TR EX ES TU MP

Double Letters Handling

Keyword: MONARCHY | Plaintext: BALLOON
Prepared: BA LX LO ON | Cipher: IB SU PM NA

Custom Alphabet Rule

Keyword: SECRET | Mode: Omit Q | Plaintext: ATTACK AT DAWN
Prepared: AT TA CK AT DA WN | Cipher: SR TU ST SR CI BV

Frequently asked questions