cyberchef_classical_cipher
Encode or decode Playfair, Polybius square, ADFGVX, and Baudot/ITA2 messages using configurable keys, alphabets, and convention settings.
Instructions
Encode and decode the classical ciphers CyberChef has no operation for: Playfair, the Polybius square, ADFGVX and Baudot/ITA2 (tap code is a Polybius square, so it is the same tool). Every contested convention is a parameter, because implementations that disagree on one disagree on every message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Keyword for the square. Playfair, Polybius and ADFGVX only. | |
| mode | No | Direction. | encode |
| input | Yes | The message or ciphertext. | |
| cipher | Yes | Which cipher. | |
| polybius_size | No | Square size. 5x5 needs a 25-letter alphabet; 6x6 fits 26 letters and 10 digits. | |
| baudot_profile | No | Which figures-shift table. They differ in exactly six cells. | ita2 |
| polybius_order | No | Coordinate order. Row-then-column is canonical. | row_column |
| playfair_filler | No | The letter inserted between a doubled pair and used to pad an odd length. | X |
| baudot_bit_order | No | Bit order in each five-bit group. `value` is Wikipedia's and dcode's, `transmission` is ITU-T S.1's. If CR and LF come out transposed, use the other. | value |
| polybius_alphabet | No | Override the square's alphabet. The 6x6 default (letters then digits) is a convention, not a standard, so set this when matching a specific source. | |
| transposition_key | No | ADFGVX only: the columnar transposition applied after fractionation. Without it you get only ADFGVX's first half, a 6x6 Polybius square. | |
| playfair_reduction | No | How Playfair gets 26 letters into 25 squares. merge_ij is canonical; omit_v is dcode.fr's default. | merge_ij |
| playfair_replace_doubles | No | Bug-compatibility with pycipher, which REPLACES the second letter of a doubled pair rather than inserting a filler. Lossy: it does not round-trip. |