Bifid Cipher
NewEncrypt and decrypt text with the Bifid cipher, a fractionating cipher that converts letters to Polybius coordinates, recombines rows and columns, and reads new letters back out.
The Bifid cipher converts every letter to its row/column coordinates on a keyed 5x5 grid (I/J share a cell), writes all the rows above all the columns, reads that combined sequence back off in pairs, and converts each pair back into a letter using the same grid. This "fractionates" each letter's identity across the whole message, making frequency analysis much harder than a simple substitution cipher.
Frequently Asked Questions
What does "fractionating" actually mean for this cipher?
Instead of just substituting or transposing whole letters, Bifid breaks each letter down into its two Polybius coordinates, mixes all those coordinates together across the entire message, and only then reassembles new letters — so a single plaintext letter's "identity" gets spread across the influence of several ciphertext letters, which is what makes simple frequency analysis much less effective against it.
How is Bifid different from the Polybius square cipher it's built on?
The plain Polybius square just converts each letter to a coordinate pair with no further mixing — Bifid adds a crucial extra step, writing all the row-coordinates and all the column-coordinates as two separate sequences, concatenating them, and then re-pairing the whole combined sequence to produce genuinely different letters.
Does the key matter for this cipher?
Yes — the key seeds a custom 5x5 letter arrangement (rather than using the grid in plain A-Z order), and both the sender and receiver need to use the exact same keyed grid for encryption and decryption to work correctly.
Does this tool match the classic Wikipedia Bifid cipher example?
Yes — using the exact grid and plaintext from the reference example, "FLEEATONCE" correctly encrypts to "UAEOLWRINS", matching the published example precisely.
Is Bifid secure for real communication today?
No — like all classical ciphers on this site, it predates modern cryptography and can be broken with dedicated cryptanalysis techniques given enough ciphertext; it's included here for its historical and educational significance as one of the more sophisticated hand ciphers ever devised.