Skip to main content

Chess

The Chess cipher is a substitution cipher that uses a chessboard-like grid to encode letters and numbers. The table uses automatically generated keys with rows labeled A-G and columns labeled 0-9, similar to chess notation. Each character in the alphabet is placed in the grid, and the alphabet repeats to fill the entire board.

The cipher uses an extended alphabet including A-Z and 0-9 (36 characters total). If the grid size exceeds the alphabet length, the alphabet wraps around to fill the grid.

12345678
AABCDEFGH
BIJKLMNOQ
CPRSTUVWX
DYZ012345
E6789ABCD
FEFGHIJKL
GMNOQPRST
HUVWXYZ01

Encoding

  1. Each character is placed in a cell of the grid (rows labeled A-H, columns labeled 1-8).
  2. To encode a letter, find its row and column in the table.
  3. Combine the row and column keys to form the encoded symbol.
  4. Repeat for every character in the message.
  • HA8
  • EA5
  • LB4
  • OB7

Decoding

  1. Split the encoded message into grid coordinates
  2. Look up each pair in the table using row (A-H) and column (0-7) keys
  3. Replace with the corresponding letter

Example

Input: HELLO WORLD

Encoded: A8 A5 B4 F8 B7 | C7 G3 C2 B4 A4

Decoded: hello world

Demo

Constructor Options

Encode Options
Decode Options