Bifid Cipher

Encrypt and decrypt text with the Bifid cipher online. Use a custom keyword, choose an alphabet, and see how Delastelle's fractionating transposition cipher combines a Polybius square with coordinate splitting.

Input
0 chars · 0 bytes
Try:
Result
✓ Based on a Polybius square with keyword ✓ Fractionation: coordinates split and recombined ✓ We never store your messages ✓ Processed on our server
Examples
Encrypt with Bifid Key: KEYWORD
Input HELLO
Output FHYCZ

Basic Bifid encryption example using the keyword KEYWORD. The plaintext is converted to Polybius-square coordinates, fractionated, and recombined as ciphertext.

Decrypt with Bifid Key: KEYWORD
Input FHYCZ
Output HELLO

Decryption using the same keyword and alphabet setting. The coordinate stream is split back into rows and columns to restore the plaintext.

Encrypt a phrase with spaces Key: PLAYFAIR
Input ATTACK AT DAWN
Output YNBYIXMWSMWE

Spaces are ignored during calculation, so the phrase is processed as ATTACKATDAWN before encryption.

English J is treated as I Key: KEYWORD
Input JIGSAW
Output HIRQCI

In the English 5×5 grid, J shares the same cell as I. This example shows how text containing J is normalized before Bifid encryption.

How the Bifid cipher works

The Bifid cipher is a classical fractionating transposition cipher invented by Félix Delastelle. It starts with a keyword-based Polybius square: duplicate letters are removed from the keyword, then the remaining alphabet fills the grid.

Each plaintext letter is converted into two coordinates: a row number and a column number. The cipher writes all row coordinates first, then all column coordinates, and reads the combined coordinate stream in pairs to produce the ciphertext.

This process is called fractionation because each letter is split into smaller coordinate parts before being recombined. The result is stronger than a simple substitution cipher because one plaintext letter can influence the positions of several ciphertext letters.

When to use this tool

Use this Bifid cipher tool to encode and decode messages, test different keywords, compare alphabet settings, and study how fractionation changes letter patterns. It is useful for cryptography lessons, puzzle design, CTF-style challenges, historical demonstrations, and checking hand calculations.

The tool supports encryption and decryption with the same keyword. It can auto-detect the alphabet from your text and key, or you can select a specific alphabet manually when you need reproducible results.

Supported alphabets and text handling

The English Bifid cipher uses a traditional 5×5 square, so J is treated as I. This gives 25 cells and keeps the historical Polybius-square format. Italian uses the same 5×5 approach in this implementation.

Other supported alphabets use larger square grids where needed: Russian, German, Spanish, Portuguese, and Turkish use 6×6 grids, while French uses a 7×7 grid. Some grids include numeric filler symbols so the alphabet fits a perfect square.

Spaces, punctuation, and unsupported characters are ignored during calculation. Output is returned in uppercase, which makes the result easy to copy, compare, and reuse in examples.

Bifid cipher security and limitations

Bifid is stronger than a monoalphabetic substitution cipher because it combines substitution with transposition-like coordinate mixing. That makes direct single-letter frequency analysis less effective than it is against Caesar, Atbash, or simple substitution ciphers.

However, Bifid is still a historical manual cipher, not a secure modern encryption method. With enough ciphertext, modern cryptanalysis and computers can recover patterns and test likely keys. Use it for learning, puzzles, and classical cryptography experiments rather than real private communication.

FAQ

The Bifid Cipher is a classical fractionating cipher invented by Félix Delastelle. It uses a keyword-based Polybius square, splits each letter into row and column coordinates, then recombines those coordinates to create the ciphertext.

The English alphabet has 26 letters, which does not fit a 5×5 square. Treating J as I gives 25 letters, exactly enough for the traditional Bifid Polybius square.

Yes. Decryption requires the same keyword and the same alphabet setting that were used during encryption. A different keyword builds a different Polybius square and produces a different result.

No. This implementation extracts only characters from the selected alphabet. Spaces, punctuation marks, and unsupported symbols are ignored during encryption and decryption.

The tool supports English, Russian, German, Spanish, French, Italian, Portuguese, and Turkish. You can let the tool detect the alphabet automatically or select one manually.

The keyword controls the order of letters in the Polybius square. Duplicate key letters are used only once, and the rest of the alphabet fills the remaining cells.

No. Bifid is valuable for education, puzzles, and historical cryptography, but it is not secure for modern private communication.
Related tools

Caesar Cipher

Classic letter-shift cipher with custom shift values.

XOR Cipher

Online XOR encryption and decryption with text or hex keys.

Playfair Cipher

Classic digraph substitution cipher with keyword matrix encryption.