Introduction
Looking for a cipher that combines Morse code with fractionation? The Fractionated Morse cipher first converts plaintext to Morse code, then groups the Morse symbols into triples and substitutes each triple with a letter from a keyed alphabet. This destroys the one-to-one letter mapping that frequency analysis relies on, making it more secure than simple substitution ciphers. The cipher first appeared in the April-May 1960 edition of the American Cryptogram Association magazine. Paste your text below to encode or decode.
What this tool does
- Encodes plaintext by converting to Morse code, grouping into triples, and substituting with a keyed alphabet.
- Decodes ciphertext by reversing the substitution, recovering the Morse stream, and translating back to text.
- Uses a keyword to create a mixed alphabet for the substitution table.
- Handles word boundaries through Morse code conventions: single 'x' separates letters, double 'xx' separates words.
- Pads the Morse stream to a multiple of 3 with separator characters as needed.
- Processes all data locally in your browser.
How this tool works
Enter a keyword in the keyword field. The tool creates a keyed alphabet by writing the keyword (with duplicates removed) followed by the remaining letters of the alphabet. In Encode mode, type your plaintext and the tool converts it to Morse code using 'x' as a letter separator and 'xx' as a word separator. The Morse stream is padded to a multiple of 3 and each triple is substituted with a letter from the keyed alphabet. In Decode mode, paste the ciphertext and the tool reverses the process. The Swap button toggles between modes.
How the Fractionated Morse cipher works
The Fractionated Morse cipher was first published in the April-May 1960 edition of The Cryptogram, the magazine of the American Cryptogram Association (ACA), by ACA member FIDDLE. It is described in detail by H. F. Gaines in *Elementary Cryptanalysis* and on Practical Cryptography. The cipher works in three steps. First, the plaintext is converted to Morse code using dots (.), dashes (-), and separators (x). A single x separates letters within a word, and xx separates words. Second, the resulting Morse stream is divided into groups of three symbols. Each triple is one of 26 valid combinations (27 total minus 'xxx' which cannot occur). Third, each triple is replaced by a letter from a keyed substitution alphabet. The keyed alphabet is constructed from a keyword: write the keyword with duplicate letters removed, then append the remaining letters of the alphabet in order. For example, the keyword 'CROWDED' produces the alphabet 'CROWDEABFGHIJKLMNPQSTUVXYZ'. The 26 valid triples are arranged in a fixed order (..., .-, .--, .x, etc.) and each maps to the corresponding letter in the keyed alphabet. The fractionation step is what makes this cipher interesting. Because Morse code uses variable-length representations (E is a single dot, while Q is '--.-'), the grouping into triples mixes characters from different plaintext letters into a single ciphertext letter. This means one plaintext letter does not map to one ciphertext letter, defeating simple frequency analysis. However, the cipher is not unbreakable. The frequency distribution of triples is non-uniform (single dots and dashes are more common), and certain ciphertext letter combinations are impossible (those that would require 'xxx' in the Morse stream). With enough ciphertext, the substitution alphabet can be recovered through hill-climbing or dictionary attacks.
How to use this tool
- Enter a keyword in the keyword field. The keyword creates a mixed alphabet for substitution.
- Select Encode mode and type your plaintext. The tool converts it to Morse, groups into triples, and substitutes.
- To decode, select Decode mode and paste the ciphertext. The tool reverses the substitution and Morse conversion.
- Use the Swap button to toggle between encoding and decoding.
- Use the Copy result button to copy the output to your clipboard.
Real-world examples
Encoding a short message
Keyword: 'ROUNDTABLE'. Plaintext: 'HELLO'. The tool converts HELLO to Morse: '....x.x.-..x.-..x---'. Grouped into triples: '...', '.x.', 'x.-', '..x', '.-.', '.x-', '--x'. Each triple maps to a letter from the keyed alphabet ROUNDTABLECFGHIJKMPQSVWXYZ, producing the ciphertext.
Decoding a Fractionated Morse ciphertext
Keyword: 'ROUNDTABLE'. Ciphertext: 'ESOAVVLJRSSTRX'. Paste this in Decode mode with the same keyword. The tool converts each letter back to its Morse triple, joins the triples into a Morse stream, splits by 'x' to recover letters and by 'xx' to recover words, and outputs the plaintext.
Encoding a message with spaces
Plaintext: 'DEFEND THE EAST'. The tool encodes each word separately, using 'xx' between words. The Morse stream includes both letter separators (x) and word separators (xx), which are preserved through the fractionation process and recovered on decoding.
Comparison with similar methods
| Method | Complexity | Typical use |
|---|---|---|
| Fractionated Morse | Morse + triple substitution | ACA puzzles, CTF challenges |
| Morse code | Variable-length encoding | Telegraphy, amateur radio |
| Bifid cipher | Polybius + fractionation | Classical encryption with diffusion |
| Pollux cipher | Morse + multi-symbol substitution | ACA cipher challenges |
Limitations or considerations
The Fractionated Morse cipher is breakable with sufficient ciphertext. The non-uniform frequency distribution of Morse triples and the impossibility of certain letter combinations provide statistical information that can be exploited. Hill-climbing attacks that swap letters in the keyed alphabet and score the resulting plaintext using quadgram statistics are effective. The cipher requires both parties to know the keyword. This tool implements the standard ACA version of the cipher. Some variations use different triple orderings or additional transposition steps. The padding at the end of the Morse stream may produce an extra letter in the ciphertext that decodes to a partial or empty character.
Frequently asked questions
Why are there 26 valid triples instead of 27?
There are 27 possible triples from three symbols (dot, dash, separator). However, 'xxx' (three consecutive separators) cannot occur in valid Morse code because two consecutive letter separators already indicate a word boundary. A third separator would be meaningless. So only 26 triples are valid, mapping neatly to the 26 letters of the alphabet.
How is this different from regular Morse code?
Regular Morse code is a simple substitution where each letter maps to a unique pattern. Fractionated Morse adds a substitution layer on top: the Morse patterns are grouped and re-encoded as letters. This means the ciphertext contains letters, not dots and dashes, and one plaintext letter can contribute to multiple ciphertext letters.
Can I use this for CTF challenges?
Yes. Fractionated Morse is a staple of CTF cryptography challenges and ACA cipher puzzles. This tool handles both encoding and decoding. You need to know the keyword to decode. If the keyword is unknown, you may need to use frequency analysis or hill-climbing techniques.
Does the ciphertext preserve word boundaries?
Yes. Word boundaries are encoded as 'xx' in the Morse stream, which is preserved through the fractionation process. When decoding, the tool splits the Morse stream by 'xx' to recover word boundaries and by 'x' to recover individual letters.
Conclusion
The Fractionated Morse cipher is a clever combination of Morse code and fractionation that demonstrates how variable-length encoding can be used as a cryptographic defense. This tool handles both encoding and decoding with a keyword-based substitution alphabet. For CTF challenges and ACA puzzles, combine this with the Morse code translator and Bifid cipher tools on this site.