Skip to main content

Playfair Cipher

Encrypt digraphs using a 5x5 key matrix with the Playfair cipher. Visualize the encryption process step by step.

Cipher Matrix (5×5)

A
B
C
D
E
F
G
H
I
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z

I/J are merged into the same cell

Share this tool
📖

How to Use

Step 1

Enter Keyword

Enter Keyword

Enter a keyword to generate the 5x5 key matrix

Step 2

Enter Message

Enter Message

Enter the message to encrypt or decrypt

Step 3

Check Result

Check Result

View the encryption/decryption result and key matrix layout

Features

Key Matrix Visualization

Display the 5x5 key matrix in a grid and visualize the encryption process

Step Display

Show the encryption/decryption process step by step for each digraph pair

Educational Explanation

Learn Playfair cipher rules (same row, same column, rectangle) with explanations

FAQ

The Playfair cipher is a classical cipher using a 5x5 character matrix from a keyword, encrypting in digraph pairs. It is more resistant to frequency analysis than simple substitution ciphers.