Bifid Cipher
Bifid Cipher
Bifid Cipher
Bifid cipher
What is the Bifid cipher?
•The bifid cipher is an encryption using a
substitution with a Polybius square and
a transposition, it is described in Traité
Élémentaire de Cryptographie by
Felix Delastelle.
How to encrypt using Bifid cipher?
•Bifid encryption requires a square grid
(or a keyword to generate the grid,
generally 5x5or 6x6) and (optional) a
number N which will serve as a
period/block length (otherwise take
N=1).
How to recognize Bifide ciphertext?
• The message has a low coincidence
index around 0.04 to 0.05.
\ 1 2 3 4 5
1 S E C R T
2 A B D F G
3 H I K L M
4 N O P Q U
5 V W X Y Z
Encryption first consists in splitting letters in blocks of size
N. This text-splitting is not mandatory, but simplifies
encryption/decryption for long texts.
How to decrypt a Bifid cipher?
• Bifid decryption begins identically to encryption.
• Example: The message DBAKS has been encrypted with a period N=3
and the grid (generated with the word MESSAGE):
\ 1 2 3 4 5
1 M E S A G
2 B C D F H
3 I K L N O
4 P Q R T U
5 V W X Y Z