Bifid Cipher with Custom Key
Encrypts text with the Bifid cipher using a 5x5 Polybius square built from your keyword, merging I and J and interleaving row and column coordinates.
Cifrado
—
Bifid: splitting coordinates to scramble everything
Bifid, created by Félix Delastelle in the late nineteenth century, is what happens when someone notices the coordinates of a Polybius square can be handled separately. Each letter becomes a row-column pair; so far that is Polybius. The new idea is writing all the rows in sequence, then all the columns, and only then reading the numbers back two at a time.
Paste the text and the key and the page walks the whole route. The effect of that separation is what makes the cipher interesting: each letter of the result now depends on two letters of the original, one that contributed a row and another that contributed a column. That is genuine diffusion — changing one input letter alters two output letters, in distant positions.
This version treats the whole message as a single block, which in the cipher's terminology is an infinite period. The classic variant splits the text into fixed-size blocks, usually five or seven, and applies the transposition within each. A single block diffuses more, but it requires the whole message to decipher any part — with fixed blocks, a lost fragment does not ruin the rest.
Frequently asked questions
What does the key do here?
Why does Bifid resist better than Polybius?
Is there a three-dimensional version?
Related Tools
Keyword Cipher
Build the cipher alphabet from the keyword you choose, followed by the remaining letters. Enciphers and deciphers, and shows the generated alphabet next to the plain one.
Affine Cipher with Explicit Keys (a, b)
Encrypts text with E(x) = (a·x + b) mod 26, refuses any key a that shares a factor with 26, and prints the modular inverse needed to decrypt.
Vigenère Cipher
Encrypt and decrypt text with the polyalphabetic Vigenère cipher using a keyword. More robust than Caesar by using multiple shifts. Everything in your browser.
Polybius Square Cipher
Encrypt and decrypt messages with the Polybius square, which turns each letter into a pair of digits on a 5×5 grid (with I and J combined).
Source Code Secret Scanner
Finds API keys, tokens, passwords and private keys pasted from code or .env files, by known pattern and by high entropy.
Vernam Cipher (One-Time Pad)
XORs your text byte by byte against a key and prints the ciphertext in hex. A short key repeats, so it is a true one-time pad only if it matches the length.