# Z32 phrase-reuse test: Z408/Z340 plaintext windows (item `phrase-reuse`) **Result: no exact fit in either source.** None of the 32-letter windows taken from the accepted Z408 or Z340 plaintexts meets Z32's repeat constraints. This model therefore gives no support to literal reuse of wording from those messages. ## Model and inputs - **Model:** the text is read in printed order (row 1, then row 2, no transposition). The substitution is a fixed homophonic one: each glyph decodes to one letter, and different glyphs may share a letter. The only testable constraint is that identical glyphs must decode to identical letters. A window "violates" a repeat pair when its letters at those two positions differ. - **Z32 transcription:** `C9J|#Ok[AMf8?ORTGX6FDVj%HCELzPW9` (32 symbols), from the Zodiac Killer Ciphers Wiki, "Unsolved 32-character 'map code' cipher" (D. Oranchak's ASCII scheme). In that scheme, upper- and lower-case characters are separate glyph labels. - **Repeat groups (one-based):** C = {1, 26}, 9 = {2, 32}, O = {6, 14}. There are 3 pairs; the other 26 glyphs each occur once, giving 29 distinct glyphs in total. - **Normalization:** convert to upper case and delete everything that is not A–Z, including spaces and punctuation. - **Source edition for both plaintexts:** English Wikipedia, "Zodiac Killer". The text comes from the blockquotes in the wikitext (`action=raw`), retrieved 2026-12-01. Each passage was used whole, with no omissions. Published misspellings were kept as printed, for example FORREST, DANGEROUE, ANAMAL, THAE, SLOI, ATOP, COLLECTIOG, EBEORIETEMETHHPITI, FAN, BRINGO, BECAASE, PARADLCE, SOOHER, WORV, VNOW. - **Z408** (Wikipedia cites Graysmith, pp. 54–5). Start anchor "I like killing people because"; end anchor "my afterlife ebeorietemethhpiti". This gives **408 letters**, matching the cipher length. The trailing 18 unsolved letters were included. The Wikipedia text reads "all the I have killed", and it was kept as printed. - **Z340** (the 2020 Oranchak/Blake/Van Eycke solution as printed on Wikipedia). Start anchor "I hope you are having lots of fan"; end anchor "easy one in paradice death". This gives **340 letters**, matching the cipher length. ## Procedure (pseudocode) ``` pairs = [(0,25),(1,31),(5,13)] # zero-based for each source S (normalized string): for o in 0 .. len(S)-32: # every offset, each source separately w = S[o:o+32] v = count(w[a] != w[b] for a,b in pairs) exact fits = windows with v == 0 null: rng = Python random.Random(20261201) # one RNG, Z408 first, then a fresh RNG with the same seed for Z340 repeat 1000: random.shuffle(letters of S) (in place, cumulative); count v==0 windows; tally totals >= observed ``` Python 3 was run with `-I`. Normalization used `re.sub('[^A-Z]','',text.upper())`. ## Counts | Source | Windows tested | Exact fits (v=0) | v=1 | v=2 | v=3 | |---|---|---|---|---|---| | Z408 | 377 | **0 / 377** | 7 | 55 | 315 | | Z340 | 309 | **0 / 309** | 2 | 67 | 240 | **Closest misses (v = 1), one-based start offsets:** - Z408: 96, 104, 188, 255, 263, 293, 362. - Z340: 85, 123. **Shuffle null, seed 20261201, 1,000 shuffles per source:** - Z408: shuffled exact-fit totals had mean 0.109, min 0, median 0, max 2. **1000 / 1000** shuffled totals were ≥ the observed 0. - Z340: mean 0.089, min 0, median 0, max 2. **1000 / 1000** were ≥ the observed 0. The observed totals are no higher than the shuffle baseline; they sit at its floor. Under independence, about 0.07² ≈ 0.0003 of windows would fit by chance, which predicts about 0.1 fits per source. That agrees with the shuffles, so finding 0 fits is unremarkable. ## Example windows (illustrations only; all are near misses, not candidates) Each check lists the positions of a repeat pair and the letters found there; ✗ marks a violated pair. 1. Z408 offset 96: `MOSTDANGEROUEANAMALOFALLTOKILLSO` - checks: 1/26 M≠O ✗; 2/32 O=O; 6/14 A=A 2. Z408 offset 188: `TINGYOURROCKSOFFWITHAGIRLTHEBEST` - checks: 1/26 T=T; 2/32 I≠T ✗; 6/14 O=O 3. Z340 offset 85: `ABOUTMEIAMNOTAFRAIDOFTHEGASCHAMB` - checks: 1/26 A=A; 2/32 B=B; 6/14 M≠A ✗ ## Choices and what they cover Every choice below was fixed before any window was scored. No fit was found, so no choice was made after seeing a fit. - **Seed:** chosen as the run date. - **Examples:** the first two Z408 near misses by offset that each violate a different pair, plus the first Z340 near miss. - **Scope not tested:** paraphrase, word-boundary alignment, windows that span the two sources, the Wikipedia variant "all the [people] I have killed", alternative Z32 transcriptions, and any transposition or non-printed reading order. ## Conclusion Under printed order and a fixed homophonic key, **no 32-letter stretch of the published Z408 or Z340 plaintext is consistent with Z32's three repeat pairs** (0/377 and 0/309). The shuffle null shows that even a fit would have been expected about 10% of the time by chance. The three-pair constraint is so weak that a match could not have distinguished reuse from coincidence. This experiment excludes verbatim reuse of these two messages only. It says nothing about any other plaintext. Sources: https://zodiackillerciphers.com/wiki/index.php?title=Unsolved_32-character_%22map_code%22_cipher ; https://en.wikipedia.org/wiki/Zodiac_Killer