Under construction. A new version of this site is being built. Everything here still works: records still verify and contributions are still accepted.

open-liber-primus · topics

Alberti cipher (cipher disk)

A disk of runes that turns against a fixed ring. With 29 positions, the fixed ring in rune order and a turning schedule that ignores the plaintext, it is ruled out on sections 7–15 together; a secret order on the fixed ring, 30- or 31-position disks, and disks turned by the text itself are open.

partly ruled outalberticipher diskpolyalphabeticmixed alphabetrotation

What it is

Two rings: a fixed outer ring and an inner ring of runes in a secret order. Each letter is found on the outer ring and read off the inner ring, which is turned now and then. With 29 positions and the outer ring in rune order, turning the inner ring by k is the same as adding k and then applying a fixed letter swap: c = s(p + k).

What was tried

Repeating key inside mixed alphabets, 1–20 runes: ruled out on all 8 unsolved sectionsEach real section's IoC at the best key length is lower than in all 199 simulated ciphers0.51.01.52.02.53.0IoC at the best key lengthsectionsection 7: this text 1.02335; 0 of 199 simulated ciphers of this kind are as low or lower · ruled out7ruled outsection 8: this text 1.0441; 0 of 199 simulated ciphers of this kind are as low or lower · ruled out8ruled outsection 9: this text 1.02687; 0 of 199 simulated ciphers of this kind are as low or lower · ruled out9ruled outsection 11: this text 1.03755; 0 of 199 simulated ciphers of this kind are as low or lower · ruled out11ruled outsection 12: this text 1.03332; 0 of 199 simulated ciphers of this kind are as low or lower · ruled out12ruled outsection 13: this text 1.02347; 0 of 199 simulated ciphers of this kind are as low or lower · ruled out13ruled outsection 14: this text 1.02231; 0 of 199 simulated ciphers of this kind are as low or lower · ruled out14ruled outsection 15: this text 1.01787; 0 of 199 simulated ciphers of this kind are as low or lower · ruled out15ruled outsection 1 (solved: a control): this text 1.29709; 0 of 199 simulated ciphers of this kind are as low or lower · ruled out1n/asection 5 (solved: a control): this text 1.91911; 114 of 199 simulated ciphers of this kind are as low or lower · fits5fits199 simulated ciphers (box 25–75%, whiskers 1–99%)real: ruled outreal: fitssolved sections
Figure 1. A short repeating key added after the runes are swapped by one secret alphabet, and swapped again afterwards (known as Quagmire I–IV). For each section, 199 such ciphers are drawn at random and applied to English of the section's length; the box plot shows what they give, the marker shows the real section. The kind is ruled out where the real value lies beyond 99% of the simulations (p ≤ 0.01). Shaded: solved sections. No solved section uses this kind, so there is no control.

What follows

No key independent of the plaintext: sections 7–15 have 86 repeats, at least 113 would be neededPooled chance under the bound: 4e-03. Solved controls (independent keys) sit well above their floors.012345repeated neighbours (% of pairs)sectionchancesections 7–15: 86 repeated neighbours in 12,955 pairs (0.66%); least an independent key gives: 0.87%all, pooled0.004ruled outsection 7: 4 repeated neighbours in 728 pairs (0.55%); least an independent key gives: 0.85%70.26section 8: 6 repeated neighbours in 1,144 pairs (0.52%); least an independent key gives: 0.90%80.11section 9: 9 repeated neighbours in 1,728 pairs (0.52%); least an independent key gives: 0.87%90.068section 11: 10 repeated neighbours in 1,893 pairs (0.53%); least an independent key gives: 0.87%110.062section 12: 11 repeated neighbours in 1,020 pairs (1.08%); least an independent key gives: 0.87%120.81section 13: 13 repeated neighbours in 1,523 pairs (0.85%); least an independent key gives: 0.87%130.54section 14: 12 repeated neighbours in 1,588 pairs (0.76%); least an independent key gives: 0.89%140.33section 15: 21 repeated neighbours in 3,315 pairs (0.63%); least an independent key gives: 0.87%150.083section 1: 16 repeated neighbours in 514 pairs (3.11%); least an independent key gives: 0.86%11above ✓section 5: 9 repeated neighbours in 318 pairs (2.83%); least an independent key gives: 0.91%to 5.2951above ✓section 16: 2 repeated neighbours in 84 pairs (2.38%); least an independent key gives: 0.83%to 8.27160.97above ✓random runesunsolved, 95% intervalsolved, 95% intervalleast any independent key givessolved sections
Figure 2. Share of neighbouring pairs that are the same rune, with 95% Wilson intervals. Red bars: the least any key that ignores the plaintext could produce on that text (cautious bound from this book's own English; see the proof on Analyses). Chance: how likely so few repeats would be if such a key had made the text. One section alone is too short to decide (grey); all unsolved sections together sit clearly below the floor (left). The solved sections, encrypted with such keys, sit above theirs.

Still open

Gathered from the records

open tasks (5)

Check this report: bin/olp topic alberti-cipher --check re-runs every record it cites. Improve it: edit topics/alberti-cipher.md (every claim needs a citation; see the format in olp/topics.py). Related: Repeating keys (Vigenère and relatives), Secret alphabets (Quagmire, Gromark, keyed alphabets), The missing repeats (the main open lead)

Curiosity above all. Nobody here is paid, ranked or promised anything. The Liber Primus is worked on because it is interesting: a careful dead end, an odd statistic, a better tool, a good question, all count. Bring your curiosity; the checker keeps us honest.