Free Online Tool

Four-square Cipher

Advanced polygraphic cipher using four 5x5 matrices for secure encryption.

How to Use Four-square Cipher

  1. Enter plaintext and keep or replace the two keywords; defaults are EXAMPLE and KEYWORD.
  2. Choose Encrypt; letters are uppercased, J becomes I, and an odd final letter is padded with X.
  3. The component encrypts each digraph through four 5×5 squares and groups output in fives.
  4. Use Decrypt with the same keywords to reverse the rectangle lookup.

Four-square maps the first and second letters of each pair through opposite corners formed by two plaintext and two keyed Polybius squares.

Examples

Default keywords EXAMPLE / KEYWORD:

HELLO

Output:

FYGFI X

Default keywords EXAMPLE / KEYWORD:

ATTACKATDAWN

Output:

MMOWP AMMEW WG

Features

Privacy Focused

All processing happens in your browser. No data is sent to servers.

Free Forever

No registration, no limits, completely free to use.