Bifid cipher

Last updated

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.

Contents

Operation

First, a mixed alphabet Polybius square is drawn up, where the I and the J share their position:

12345
1BGWKZ
2QPNDS
3IOAXE
4FCLUM
5THYVR

The message is converted to its coordinates in the usual manner, but they are written vertically beneath:

FLEEATONCE
4433353243
1355312325

They are then read out in rows:

44333532431355312325

Then divided up into pairs again, and the pairs turned back into letters using the square:

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.

UAEOLWRINS
44333532431355312325
44333532431355312325

Find the midpoint of the row.

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.

4433353243
1355312325
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. [1]

See also

References

  1. "Practical Cryptography".