Toolstia / Bifid cipher

Bifid cipher

The Bifid cipher combines a Polybius square with a transposition step, so each cipher letter depends on two plain letters. Add an optional keyword or a period, then encrypt or decrypt.

Bifid writes the row and column numbers of each letter, mixes them together and turns them back into letters, so each cipher letter depends on two plain letters. J is treated as I. A period splits the message into blocks of that size before mixing.

How it works

  1. Type your text and an optional keyword.
  2. Set a period or leave it at zero for the whole message.
  3. Choose encrypt or decrypt and copy the result.

How it works

Each letter is replaced by its row and column in a 5x5 square. All the rows are written first, then all the columns, and the digits are read back in pairs.

Keyword square

A keyword is placed first in the square and the rest of the alphabet follows. J is merged with I.

Period

With a period, the message is cut into blocks of that length and each block is mixed on its own.

Ignored characters

Only letters are encrypted, and the tool removes spaces and punctuation from the result.

Questions

Is my message sent anywhere?

Everything happens in your browser, and nothing you enter is sent anywhere.

Why is J missing?

A 5x5 square holds 25 letters, so I and J share a cell, as in many classic ciphers.

Is Bifid strong?

It is stronger than a simple substitution, but modern attacks break it, so use it for puzzles and learning.