Kryptos K4: The ‘W’ as a Separator
Split at Its Five W’s, K4 Falls Into Two Groups With One Frequency Shape
Jim Sanborn carved four coded messages onto his Kryptos sculpture in 1990. Three of them were deciphered in the 1990s, while the fourth, K4, remains unsolved. Sanborn has since revealed where to find a compass direction and a clock in it—did you notice which letter sits immediately before the direction and immediately after the clock?
- EASTNORTHEAST occupies positions 22 to 34.
- BERLINCLOCK occupies positions 64 to 74.
Sanborn released these clues separately, starting in 2010. Elonka Dunin keeps a chronology, including the 2020 announcement of NORTHEAST.
K4 as it appears on the sculpture. There are 97 letters.
The Signs of a Segmentation and Recombination Technique
Try cutting the message at every W.
- The five W’s divide K4 into six segments. A segment is simply the run of letters between two cuts, or between a cut and the end of the text. My guess is that each one contains whole words.
- In 2024, I assumed the W’s were added when the pieces were joined, leaving at most 92 letters for the message. [(Update November 28, 2026) If each W stands for a stop, the 92 letters and the five stops would account for all 97 positions. In an October 2024 discussion of this article, a reader suggested that the W’s might stand for X’s used as stops.]
- Each segment belongs to either of two groups (Group A and Group B).
- The groups appear alternately in the ciphertext: A|B|A|B|A|B.


97 letters, as on the sculpture. Pick a segment: point at it, or tab to it. W: separator Numbers: segments in reading order Group A: segments 1, 3, 5 Group B: segments 2, 4, 6 Grey band: Sanborn’s known plaintext Letter 49 of 97: the central W Brackets: the 48 letters before it and the 48 after it
- The groups have identical letter frequency distribution shapes for different letters. In each group,
- 1 letter appears 5 times,
- 2 letters appear 4 times each,
- 4 letters appear 3 times each,
- 6 letters appear 2 times each, and
- 9 letters appear 1 time each.
How could these two groups arise? I can see two ways to combine segmentation and encryption.1 Both assume that the cipher keeps word positions intact rather than transposing the whole text.
- Encipher the message (a), split it into two groups of segments (b), adjust the counts in the groups (c) and join the segments with W’s (d).
- Split the message first (a), then encipher each group separately (b). The counts could be adjusted during that step or afterwards (c). Join the segments as before (d).
My Approach
While studying Enigma (hypothesizing it would help solve K4), I learned that separators represented punctuation marks as the machine only supported alphabetic characters. For instance, the doublet “YY” represented a dot. The same manual also lists “X = Full stop (end of sentence)”, which is the hypothesis of the 2026 sequel. These separators were used for plaintext because of a technical constraint. I pondered if this technique could have been replicated in ciphertext to misdirect analysts. (Such separators are delimiters, an idea I later explored in a series of articles.)
I wrote K4nundrum to try each letter as a separator. Here is K4 in one line, if you want to try the split yourself.
OBKRUOXOGHULBSOLIFBBWFLRVQQPRNGKSSOTWTQSJQSSEKZZWATJKLUDIAWINFBNYPVTTMZFPKWGDKZXTJCDIGKUHUAUEKCAR


K4nundrum, the open-source tool behind these measurements.
For each separator from A to Z, the program rearranges the segments and tries grouping them, from two groups up to one per segment. Then it counts the letters in each group. With W, the match is right there in the original order. Take segments 1, 3 and 5 for one group and 2, 4 and 6 for the other.
An Intentional Pattern?
How often would the same search find a match in 97 letters drawn at random? I added a simulation (--sim) to K4nundrum to try it. Of 1,031,972 random strings, 17,961 (1.74%) could be split into groups with matching counts. Three details narrow the comparison with K4.
First, the simulator tends to produce groups containing tiny segments (1 or 2 characters long). For instance, and typically:
> GKUCPFTQBJCKSEVMFWRLWKPEKCZHFFYNPLZZINWAFVKZEMJNRCAUYHUMITLKEZKQGZKBG
PIRRPUGKVSMHXASUIYPVJBZKFUKX
Group 1: BGPIRRPUG FU G PE QGZ UCPFTQBJC X ZEMJNRCAUYHUMITL
Letter Freq.: U:5 G:4 P:4 R:3 C:3 E:2 B:2 I:2 F:2 Z:2 M:2 J:2
T:2 Q:2 H:1 L:1 X:1 N:1 Y:1 A:1
Group 2: CZHFFYNPLZZINWAFV EZ SEVMFWRLW VSMHXASUIYPVJBZ
Letter Freq.: Z:5 V:4 F:4 W:3 S:3 H:2 E:2 P:2 L:2 M:2 N:2 Y:2
I:2 A:2 J:1 X:1 R:1 U:1 C:1 B:1
The random string, split at its separator K, produces segments such as ‘EZ’ or ‘G’ in this example.
If I assume that segments represent sequences of whole words, it is implausible that the creator of a ciphertext would use small segments. They would also needlessly complicate the encryption process. When the simulator excludes tiny segments (fewer than three characters), ~0.6% of the pseudo-K4 passages can be split into appropriately sized groups with identical distribution shapes.
Second, K4’s groups alternate. This additional constraint is even more rarely visible in the segments generated by the simulator: ~0.07% of the pseudo-K4s alternate. When all these constraints are considered (identical letter frequency distribution shapes, appropriately sized segments, and alternating groups), only ~0.044% of the generated strings are similar to K4. In this random-string model, that is about one generated string in 2,250. It does not estimate how many real ciphertexts Sanborn would have needed to create: the simulator does not model his unknown encryption method or design process.
Third, when I align the cribs with K4, the plaintext words are immediately adjacent to a W. In other words, when mapped to the ciphertext, their first or last letter is directly next to a W: they start or end a segment. This observation could support the idea of segments representing sequences of whole words.
If my guess about whole words is right, the second segment has room for a little more than the direction itself: for instance, the 15 letters could read “… east-northeast of …”. Interestingly, Sanborn revealed words belonging to two different groups; I wonder whether that choice was itself a clue.
I chose these comparisons after observing K4. The figures tell me how often the same features turn up in random strings; whether Sanborn put them there on purpose remains an open question.
A Technique to Mask Letter Frequencies
Fabricating Letter Frequencies
Why would Sanborn use such a technique?
A reader who counts all 97 letters at once mixes three things together. Take K, the most common letter in K4: of its eight occurrences, three are in Group A and five in Group B. Change the counts in either group and the overall count changes with them, while the five W’s also get counted—whether they were added to join the segments or already belonged to the message.
Group A Group B W, in no group outline of Group B, laid over Group A outline of Group A, laid over Group B Point at or tap a bar for its letter.
Table of the counts
| Letter | Group A | Group B | K4 |
|---|
If Sanborn did adjust the counts, I do not know how he did it. It is, however, important not to assume that identical distribution shapes necessarily mean that the deciphered segments of Group A contain the same letters as the ones of Group B (which would be very unlikely for a natural language). On the one hand, this mechanism could have been applied to encrypted segments (second-order encoding). On the other hand, intentional spelling errors, similar to other passages like UNDERGRUUND (K2) or DESPARATLY (K3), could have been introduced to slightly modify the letter frequencies. With this simple technique, one letter’s occurrences are decremented while another’s are incremented. For example, IQLUSION (K1) decrements the Ls while incrementing the Qs. Similarly, superfluous letters could have been introduced in the style of XCANYOUSEEANYTHINGQ (K3).
Illustration: Let’s Encrypt Alice
Could I build a cipher that reproduces the same pattern?
Let’s say I want to encrypt this passage from Alice’s Adventures in Wonderland:
“You promised to tell me your history, you know,” said Alice.
The first step is to transform the sentence by removing the punctuation marks and the spaces and by capitalizing the letters:
Then, the sentence is divided into six segments, assigned alternately to two groups. Last, the letter frequencies of the respective groups are computed.
The distributions are dissimilar. I want to reduce this difference. To that end, I encode the first group using standard Vigenère (obviously, I could have used a different cipher) and try several keys to improve the situation. The key SECRET quickly emerges as a good candidate (“YOUPROMISEDTO YOUR YOUKNOW” becomes “QSWGVHEMUVHMG CQLV RGYMESP”):
The letter frequency distribution shapes are now similar but have yet to be identical. I need to adjust the second group to make them match. In this case, it is just a matter of adding letters (as the second group is shorter than the first). “TELLME HISTORY SAIDALICE” becomes “YTELLME HISTORY SAIDALICEX”. The original plaintext segments remain intelligible.
I obfuscate the second group for demonstration by merely applying a trivial ROT13 cipher, which preserves the distribution shapes (“YTELLME HISTORY SAIDALICEX” becomes “LGRYYZR UVFGBEL FNVQNYVPRK”).
The shapes of the distributions are identical. The last step is to identify a letter not present in the ciphertext segments (‘X’, for instance) and recombine the segments by alternating them:
The outcome is a ciphertext that resists frequency analysis of the text as a whole, because of the fabricated letter frequency.
Importantly, this example demonstrates that the two plaintext groups are not required to contain the same letters. Also, the separator that combines the segments is one of the most frequent letters in the ciphertext, even though it is the odd one out.
Your Turn
The same steps work on any sentence. Type one of your own and choose a key: the figure splits it into six segments, enciphers Group 1, adds the letters each group lacks, and joins the segments with a letter that neither group uses. Another key changes how many letters must be added.
On the web page, a figure here lets you put a sentence of your own through these steps.
Sentences enciphered here are kept, without your address, so that I can see what readers try.
Type a sentence of at least 12 letters, choose a key, and press Encipher.
Conclusion
Once the technique is known, the separator is identified, and the correct groups are determined, deciphering this kind of code is a matter of understanding how each group has been “encoded” before attacking it with classic cryptanalysis methods.
This is the path I would like to follow to crack K4.
For simplicity, in this article, I interchangeably use “encryption”, “encipherment”, and “encoding” to convey the idea of transforming the plaintext to the ciphertext (and vice versa, using their antonyms). ↩︎



























