Breaking the Zodiac Ciphers: Z408, Z340 and the Unsolved Z13 and Z32
One Zodiac cipher fell to a couple with pencils in 1969; another took 51 years and a specialized solver. The cryptanalysis behind both, and why two short codes remain unsolved.
By Wonders & Marvels Research Desk · Published · 10 min read
Between the summer of 1969 and the spring of 1970, the person who signed letters as “Zodiac” mailed four ciphers to newspapers in the San Francisco Bay Area. The letters accompanied a series of murders that have never been solved. The ciphers have had a different fate. The first was read within days by two newspaper readers. The second resisted every attack for 51 years, until three amateur codebreakers announced its solution in December 2020 and the FBI confirmed it. The last two, at 13 and 32 symbols, remain unsolved, and there are sound mathematical reasons to think they may stay that way.12
This is a story about cryptanalysis rather than about the crimes. Its main lesson is that neither cipher yielded to cleverness alone. Each fell when someone correctly guessed what kind of system it was, and then had a way to test that guess against the statistics of English.
Z408: a homophonic cipher read in a week
On July 31, 1969, the writer mailed a 408-symbol cipher in three parts, one each to the Vallejo Times-Herald, the San Francisco Examiner and the San Francisco Chronicle, with letters demanding that the papers print it. Police asked for help from the Navy, the FBI and the head of the American Cryptogram Association. On August 8, the Chronicle received a solution from Donald and Bettye Harden, a couple who had worked on it after seeing it in the paper.1 Joachim von zur Gathen, a mathematician at the University of Bonn, describes Donald Harden as a teacher and says the pair solved the cipher “within a week.”3
The system was homophonic substitution. In a simple substitution cipher each plaintext letter always becomes the same symbol, so the most frequent symbol in a long message is very likely E, and the method collapses under frequency counting. A homophonic cipher gives common letters several interchangeable symbols (“homophones”), which flattens those frequencies. Z408’s key assigns several symbols to frequent letters and none to J, Q or Z, which do not occur in the message. The Hardens’ reading was helped by the encipherer’s habits: he tended to cycle through a letter’s homophones in a fixed order, so that, for example, fourteen Es were written as the same seven-symbol sequence repeated twice. The decrypted text is a boast about killing, full of misspellings, and it ends in an 18-character run whose meaning has never been settled; suggestions include filler copied from elsewhere in the grid or nulls.1
Z408 has since become a standard test case. The solvers of the later cipher list a series of programs and papers that crack it automatically, including Bayesian, genetic-algorithm and hill-climbing methods published between 2008 and 2019.1 One of them was a 2008 genetic-algorithm paper by David Oranchak, who would later help solve the second cipher.4
Z340: the cipher that broke the usual tools
Z340 was mailed to the Chronicle on November 8, 1969, and printed within days. It looked like Z408: 340 symbols arranged in 20 rows of 17, drawn from an alphabet of 63 distinct symbols, 20 of which had not appeared in the first cipher. The Z408 key produced nothing. An FBI cryptanalysis report dated December 18, 1969 records that the Bureau tried the old key, transposition combined with it, cribs (guessed words placed at likely positions), alternative reading directions and anagramming, and concluded, in the solvers’ quotation of the document, “No decryption could be affected.”1
For the next five decades Z340 attracted a steady flow of claimed solutions, many of them based on anagrams or flexible rules that let the solver find almost any message he was looking for. Oranchak’s reference wiki keeps a list of these discredited or inconclusive attempts.5 The serious problem was the opposite one. Statistically, Z340 behaved like a real cipher, but solvers that easily broke artificial test ciphers built to resemble it could not break it. The solvers’ survey records several researchers concluding from this mismatch that Z340 was probably not a plain homophonic substitution, and that something such as a transposition had been added.1
The clue that eventually guided the solution was a count of repeated symbol pairs. Read normally, left to right, Z340 contains 25 repeating bigrams, close to the average of 20 for random shuffles of its own symbols and well below the average of 34.5 for 1,000 test ciphers of the same length enciphered from ordinary English. But if one pairs each symbol with the symbol 19 positions later, the count rises to 37, the highest of any spacing tested. Z408 shows no such spike at any period other than 1. In 2015, Jarl Van Eycke and a forum user known as “daikon” independently noticed the period-19 effect, which suggested that the plaintext had been laid down in some order other than straight rows before symbols were substituted.1
Searching the space of transpositions
Knowing that a transposition was probably involved did not say which one. Forum researchers spent years trying columnar schemes, spirals, zigzags, quadrants, flips and rotations. In May 2020 Van Eycke proposed a rearrangement that, in hindsight, was close to correct, but errors in the original encipherment meant it did not produce readable text when run through his solver.1
Sam Blake, an applied mathematician in Australia, joined the effort in January 2019 after watching a talk by Oranchak. He observed that the period-19 reading was really a “pseudo-period” one, and that a different mathematical object produced the same pattern: a decimation of the 20 by 17 grid, which reads it by stepping a fixed number of rows down and columns across, wrapping around both edges. Blake then enumerated billions of candidate transposition schemes, kept only those that raised the repeated-bigram count, and also allowed for the possibility that the cipher had been cut into separate horizontal or vertical sections, each transposed on its own. The resulting variants were run through two solvers: AZdecrypt, run by Oranchak, and ZKDecrypto on the Spartan supercomputer at the University of Melbourne.1
On December 2, 2020, Blake and Oranchak began reprocessing a batch of 655,088 variants, scored with 6-gram rather than the default 5-gram statistics. The next day one candidate produced fragments that read “HOPE YOU ARE,” “TRYING TO CATCH ME” and “THE GAS CHAMBER,” surrounded by gibberish.1 The variant had divided the grid into four sections (rows 1 to 9, rows 10 to 18, row 19 and row 20) and applied the same scheme to each: write a symbol, move one row down and two columns right, wrapping at the edges, and repeat. The solvers describe it as a “two right, one down” rule; von zur Gathen calls it a knight’s move.13
The first section alone was hard to solve because of its high “multiplicity,” the ratio of distinct symbols to cipher length: 63 symbols in 153 positions gives about 0.41, against 0.13 for Z408. Fewer repetitions per symbol give a solver less to work with. Oranchak fixed the three legible phrases in place as cribs, which assigned 27 of the 63 symbols, and AZdecrypt filled in the rest of a coherent first section. Because every symbol in the cipher appears in those nine rows, that key then applied to the whole message.1
The second section still came out partly garbled. Van Eycke traced most of the damage to a single symbol the encipherer had skipped on one line, and the team found that two words, “LIFE IS,” had been left out of the transposition, while some words in the last two rows had been written backwards. With those corrections the full text read as a taunt: the writer denied being a man who had telephoned a Bay Area television program in October 1969, and repeated themes of his earlier letters about an afterlife. The team sent its report to the FBI’s Cryptanalysis and Racketeering Records Unit on December 5, 2020, and released the solution by video on December 11, after time had been allowed for families of the victims to be notified.16
The solver’s machinery: hill climbing, n-grams and annealing
The engine behind the break was AZdecrypt, a solver Van Eycke began writing in 2014 to work on Z340, building on the earlier ZKDecrypto.1 It is a hill-climbing classical-cipher solver written in FreeBASIC, with specialized modes for substitution combined with transposition, for fixing cribs in a grid, and for testing positions as nulls or skipped symbols.7
The idea is simple to state. Start with a random key that maps each cipher symbol to a letter. Decrypt, and score the result by how English-like it is. Make a small random change to the key, rescore, and usually keep the change if the score improves. Repeated many times, this walk “uphill” tends toward keys that produce plausible English. The scoring uses n-gram statistics: tables of how often each run of n letters occurs in a large body of English text. Longer n-grams are more discriminating; AZdecrypt can use up to 8-grams, which demand very large tables in memory. Its score also includes an entropy term, which stops the search from settling on texts made of a few very common letters.1
Pure hill climbing gets stuck on local peaks, keys that are better than all their neighbors but still wrong. AZdecrypt uses simulated annealing, a related method that, as generally described, sometimes accepts a worse key, with that tolerance reduced over time, so the search can escape false peaks. The solvers report that on an 8-core personal computer it can solve up to 200 homophonic test ciphers per second with a success rate above 99 percent. That speed is what made it practical to try hundreds of thousands of transposition variants, each requiring its own substitution search.1 Another feature proved important in December 2020: automatic insertion of word spaces into a candidate plaintext, which made partial solutions far easier for a human to recognize.1
How do we know the answer is right?
Cryptanalysts have a standard objection to claimed solutions of short or loosely defined ciphers: given enough freedom, a solver can make almost anything say almost anything. Claude Shannon’s concept of unicity distance turns that objection into a number. For a given cipher system, it estimates how many symbols of ciphertext are needed before only one key is likely to produce a meaningful plaintext. Von zur Gathen modeled the Z340 system as its components (homophonic substitution of 26 letters into 63 symbols, the choice of sections, the transposition, and allowances for irregular substitutions and misspellings) and estimated “the unicity distance of the cipher’s system is between 80 and 152.” At 340 symbols, the ciphertext is more than twice the upper figure, so under his assumptions the solution is expected to be unique.3 A journal version of his analysis appeared in Cryptologia in 2023.8
The FBI agreed. Its San Francisco field office said on December 11, 2020, “The FBI is aware that a cipher attributed to the Zodiac Killer was recently solved by private citizens,” and added that the case remained an open investigation.96 A second statement, reproduced by the solvers, says that “On December 5, 2020, the FBI received the solution to a cipher popularly known as Z340 from a cryptologic researcher and independently verified the decryption,” and that over 51 years the unit had reviewed many public proposals, “none of which had merit.”1
The text itself identifies no one. The solvers write that the plaintext “does not seem to reveal any additional information about the perpetrator’s identity or his crimes.”1 Oranchak’s own summary at the time: “The message doesn’t really say a whole lot.”6 Their full account appeared as a preprint in 2024.2
Z13 and Z32: too short to prove
The two remaining ciphers are a different kind of problem. Z13 arrived in a letter of April 20, 1970, after the words “My name is.” Z32 came with a letter and a map on June 26, 1970, and the letter claimed that its solution would give the location of a hidden bomb.1 Both are unsolved.5
The difficulty is mathematical rather than a matter of effort. Thirteen or thirty-two symbols drawn from a homophonic alphabet fall far below any plausible unicity distance for such a system, so many different keys will each yield readable text. As the Z340 solvers put it, “Cryptanalysis is all but impossible for such a short ciphertext, because solutions are not guaranteed to be unique,” and the many thousands of proposed answers generally cannot be tested scientifically.1 The same short lengths make it easy to fit a cipher to a chosen name or place. The solvers note that some investigators have read Zodiac material as hidden pointers to favored suspects, and with ciphers this short, a proposed solution is hard to separate from the expectations of whoever produced it.1
Proposals keep coming. In May 2026 Oranchak began a video series examining one recent claim to have solved both Z13 and Z32, a claim that three former NSA cryptographers had publicly endorsed.10 As of this writing, no source located for this article reports that the FBI or any police agency has confirmed a solution to either cipher, and Z340’s solution, for all the attention it drew, did not identify the person who wrote it.95
Footnotes
-
Oranchak, Blake and Van Eycke 2024, arXiv:2403.17350, sections 1-8. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13 ↩14 ↩15 ↩16 ↩17 ↩18 ↩19 ↩20 ↩21 ↩22
-
von zur Gathen 2022, HistoCrypt, abstract and sections 1-5. ↩ ↩2 ↩3
-
Oranchak 2008, GECCO (Crossref record). ↩
-
AZdecrypt GitHub README. ↩
-
von zur Gathen 2023, Cryptologia 47(5) (Crossref record). ↩
-
Oranchak, Zodiac Killer Ciphers, May 17, 2026. ↩
Sources
- Oranchak, D., Blake, S., & Van Eycke, J. (2024). The Solution of the Zodiac Killer's 340-Character Cipher. arXiv preprint arXiv:2403.17350 [cs.AI], submitted March 26, 2024. DOI: 10.48550/arXiv.2403.17350. arxiv.org/abs/2403.17350 Used for: Z408 mailing (July 31, 1969, in three parts to three newspapers) and the Hardens' solution reaching the Chronicle on August 8, 1969; homophonic substitution, cycling homophones, the unresolved 18-character ending; Z340 mailed November 8, 1969, 63 symbols in a 20 x 17 grid; FBI report of December 18, 1969; earlier academic and software attacks; hill climbing; period-19 bigram statistics (25 at period 1, 37 at period 19, shuffle mean 20, Z340-like ciphers 34.5); Blake's decimations and 655,088 variants; ZKDecrypto on the Spartan supercomputer; AZdecrypt features (simulated annealing, n-grams up to 8, entropy term, 200 ciphers per second); the December 2-5, 2020 breakthrough, sections, cribs, multiplicity, skipped symbol and reversed words; FBI statements of December 11, 2020 as reproduced; Z13 (April 20, 1970) and Z32 (June 26, 1970) and the problem of short ciphertexts; plaintext reveals nothing about identity.
- von zur Gathen, J. (2022). Unicity Distance of the Zodiac-340 Cipher. In Proceedings of the 5th International Conference on Historical Cryptology (HistoCrypt 2022), Linköping Electronic Conference Proceedings 188, 91-100. DOI: 10.3384/ecp188395. ecp.ep.liu.se/index.php/histocrypt/article/view/395 Used for: Z408 solved within a week by teacher Donald Harden and his wife Bettye; Shannon's unicity distance; key space of homophonic substitution of 26 letters into 63 symbols; sectioning and transposition as key components; the 'two right, one down' knight's-move reading; conclusion that the unicity distance of the Z340 system is between 80 and 152.
- von zur Gathen, J. (2023). Unicity distance of the Zodiac-340 cipher. Cryptologia, 47(5), 474-488. DOI: 10.1080/01611194.2023.2174821. doi.org/10.1080/01611194.2023.2174821 Used for: Existence and bibliographic details of the journal version of the unicity-distance analysis (Crossref record only).
- Claburn, T. (2020, December 12). FBI confirms Zodiac Killer's 340 cipher solved by trio of amateur math and software codebreakers. The Register. www.theregister.com/2020/12/12/zodiac_killers_cipher_solved/ Used for: The three solvers and their countries; submission to the FBI on December 5, 2020; FBI San Francisco statement; Blake's roughly 650,000 variations run through AZdecrypt; breakthrough on December 3, 2020; Oranchak's remark that the message 'doesn't really say a whole lot'.
- Yilek, C. (2020, December 12). Zodiac Killer's cipher solved by amateur codebreakers after 51 years. CBS News. www.cbsnews.com/news/zodiac-killer-cipher-solved-amateur-codebreakers-51-years/ Used for: FBI San Francisco statement that the cipher 'was recently solved by private citizens'; the code does not identify the killer.
- Paul, A. (2024, April 4). How cryptographers finally cracked one of the Zodiac Killer's hardest codes. Popular Science. www.popsci.com/technology/zodiac-letter-decode/ Used for: Publication of the solvers' 39-page paper in 2024; FBI review supported the solution; only two of four ciphers solved; authorities have not formally named anyone.
- Oranchak, D. (ed.). Zodiac Killer Ciphers Wiki, Main Page. zodiackillerciphers.com. zodiackillerciphers.com/wiki/index.php?title=Main_Page Used for: Status list: 408 and 340 solved; 13-character 'My name is' cipher and 32-character 'map code' cipher unsolved; catalogue of discredited or inconclusive solution attempts.
- Oranchak, D. (2026, May 17). [Post introducing a three-part video series examining a recent claimed solution of Z13 and Z32]. Zodiac Killer Ciphers. Cited only for the existence of the claim and its critical examination; this article endorses neither the claim nor any suspect. zodiackillerciphers.com/zodiac-and-black-dahlia-solved-by-sherlock-or-charlatan/ Used for: A recent claimed solution of Z13 and Z32, endorsed by three former NSA cryptographers, which Oranchak set out to examine critically.
- Van Eycke, J., & Oranchak, D. AZdecrypt [GitHub repository and README]. github.com/doranchak/azdecrypt Used for: AZdecrypt as a hill-climbing classical cipher solver written in FreeBASIC by Jarl Van Eycke, with solvers for substitution combined with transposition, crib grids, and nulls and skips.
- Oranchak, D. (2008). Evolutionary algorithm for decryption of monoalphabetic homophonic substitution ciphers encoded as constraint satisfaction problems. Proceedings of the 10th Annual Conference on Genetic and Evolutionary Computation (GECCO '08), pp. 1717-1718. ACM. DOI: 10.1145/1389095.1389425. doi.org/10.1145/1389095.1389425 Used for: Existence and bibliographic details of Oranchak's 2008 genetic-algorithm paper (Crossref record only).
What the evidence does not settle
Points where sources disagree, or that we could not confirm. We list them rather than smooth them over.
- Dates for the first FBI submission of Z340 differ slightly. The solvers write that the San Francisco Police Department submitted the cipher to the FBI on November 12, 1969; the FBI statement of December 11, 2020, as reproduced in their paper, says it was first submitted to the FBI Laboratory on November 13, 1969. The article gives the FBI's date for the FBI's statement and does not resolve the difference.
- Publication of Z340 is given as November 12, 1969 in the solvers' text and as November 13, 1969 for the San Francisco Chronicle printing reproduced in their figure. The article says only that it was printed within days of being mailed on November 8.
- The FBI statements of December 11, 2020 could not be read on fbi.gov (the host was not reachable from this environment). The San Francisco field office wording was read in CBS News and The Register; the longer FBI Laboratory statement was read only as reproduced in the solvers' paper.
- The solvers' account is an arXiv preprint (2024). No peer-reviewed journal version was found via Crossref. Independent support for correctness comes from the FBI statement and from von zur Gathen's unicity-distance analysis (HistoCrypt 2022; with a Cryptologia 2023 version, of which only the Crossref record was checked).
- Exact readings of the Z340 plaintext vary slightly between published versions (for example where the untransposed fragment 'LIFE IS' is placed). The solvers say its placement 'remains subjective'.
- Proposed solutions to Z13 and Z32 continue to be published, including one that was publicly endorsed by former NSA cryptographers and is examined critically on David Oranchak's site (2026). None has been confirmed by law enforcement in any source found. This article deliberately does not discuss any proposed suspect.
Corrections and updates
No corrections have been issued for this article.
Spotted an error? Email editor@wondersandmarvels.com with the passage and a source. See our corrections policy.
About this article: written for the new Wonders & Marvels by the Wonders & Marvels Research Desk, with AI-assisted research and drafting. It is an original work and does not reproduce any article previously published at this address.