Bifid cipher

Encryption system


title: "Bifid cipher" type: doc version: 1 created: 2026-02-28 author: "Wikipedia contributors" status: active scope: public tags: ["classical-ciphers"] description: "Encryption system" topic_path: "general/classical-ciphers" source: "https://en.wikipedia.org/wiki/Bifid_cipher" license: "CC BY-SA 4.0" wikipedia_page_id: 0 wikipedia_revision_id: 0

::summary Encryption system ::

In classical cryptography, the bifid cipher is a cipher which combines the Polybius square with transposition, and uses fractionation to achieve diffusion. It was invented around 1901 by Felix Delastelle.

Operation

First, a mixed alphabet Polybius square is drawn up, where the I and the J share their position: ::data[format=table]

1234512345
BGWKZ
QPNDS
IOAXE
FCLUM
THYVR
::

The message is converted to its coordinates in the usual manner, but they are written vertically beneath: ::data[format=table]

FLEEATONCE
4433353243
1355312325
::

They are then read out in rows: ::data[format=table]

44333532431355312325
::

Then divided up into pairs again, and the pairs turned back into letters using the square: ::data[format=table]

44333532431355312325
UAEOLWRINS
::

In this way, each ciphertext character depends on two plaintext characters, so the bifid is a digraphic cipher, like the Playfair cipher.

To decrypt, use the same Polybius square. Convert the ciphertext to its coordinates in the usual manner, but keep it written in a single row. ::data[format=table]

UAEOLWRINS
44333532431355312325
::

::data[format=table]

44333532431355312325
::

Find the midpoint of the row. ::data[format=table]

4433353243X1355312325
::

Take all of the digits to the right of the midpoint and move them to a second row directly below the first.

Convert these vertical pair coordinates to find the plaintext. ::data[format=table]

FLEEATONCE
::

Longer messages are first broken up into blocks of fixed length, called the period, and the above encryption procedure is applied to each block. One way to detect the period uses bigram statistics on ciphertext letters separated by half the period. For even periods, p, as in the example above (p=10), ciphertext letters at a distance of p/2 are influenced by two plaintext letters (e. g., U and W are influenced by F and L), but for odd periods, p, ciphertext letters at distances of p/2 (rounded either up or down) are influenced by three plaintext letters. Thus, odd periods are more secure than even against this form of cryptanalysis, because it would require more text to find a statistical anomaly in trigram plaintext statistics than bigram plaintext statistics.

References

References

  1. "Practical Cryptography".

::callout[type=info title="Wikipedia Source"] This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page. ::

classical-ciphers