-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomparison.html
More file actions
420 lines (405 loc) · 38 KB
/
comparison.html
File metadata and controls
420 lines (405 loc) · 38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cipher Comparison — The Cipher Museum</title>
<meta name="description" content="Compare 117 cipher systems from the 139-exhibit collection side by side. Sort by era, type, security level, hall, solved status, key method, and more.">
<meta property="og:title" content="Cipher Comparison — The Cipher Museum">
<meta property="og:description" content="Compare 117 cipher systems from the 139-exhibit collection side by side. Sort by era, type, security level, hall, solved status, key method, and more.">
<meta property="og:type" content="website">
<meta property="og:url" content="https://ciphermuseum.com/comparison.html">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Cipher Comparison — The Cipher Museum">
<meta name="twitter:description" content="Compare 117 cipher systems from the 139-exhibit collection side by side. Sort by era, type, security level, hall, solved status, key method, and more.">
<meta name="theme-color" content="#0a0a0f">
<link rel="canonical" href="https://ciphermuseum.com/comparison.html">
<link rel="stylesheet" href="css/museum.css">
<link rel="icon" type="image/svg+xml" href="favicon.svg">
<style>
.comp-controls{display:flex;flex-wrap:wrap;gap:1rem;margin-bottom:2rem;align-items:center}
.comp-search{font-family:var(--fm);font-size:.85rem;padding:.6rem 1rem;background:var(--s2);border:1px solid var(--s4);color:var(--tx);border-radius:var(--r);width:260px;transition:border-color var(--tr)}
.comp-search:focus{border-color:var(--gold);outline:none}
.comp-filter{font-family:var(--fm);font-size:.72rem;padding:.5rem .8rem;background:var(--s2);border:1px solid var(--s4);color:var(--tx2);border-radius:var(--r);cursor:pointer;transition:all var(--tr);appearance:none;-webkit-appearance:none}
.comp-filter:focus{border-color:var(--gold);outline:none}
.comp-count{font-family:var(--fm);font-size:.65rem;letter-spacing:.15em;text-transform:uppercase;color:var(--tx3);margin-left:auto}
.comp-table-wrap{overflow-x:auto;border:1px solid var(--s4);border-radius:var(--rl);background:var(--s2)}
.comp-table{width:100%;border-collapse:collapse;font-size:.92rem}
.comp-table thead{position:sticky;top:0;z-index:5}
.comp-table th{font-family:var(--fm);font-size:.62rem;letter-spacing:.18em;text-transform:uppercase;color:var(--gold);background:var(--s3);padding:.85rem 1rem;text-align:left;border-bottom:1px solid var(--s4);cursor:pointer;user-select:none;white-space:nowrap;transition:background var(--tr)}
.comp-table th:hover{background:var(--s4)}
.comp-table th.sorted-asc::after{content:' ▲';font-size:.5rem}
.comp-table th.sorted-desc::after{content:' ▼';font-size:.5rem}
.comp-table td{padding:.7rem 1rem;border-bottom:1px solid var(--s4);color:var(--tx2);vertical-align:middle}
.comp-table tr:hover td{background:var(--s3)}
.comp-table tr.hidden{display:none}
.comp-table td:first-child{font-family:var(--fd);font-weight:600;color:var(--tx)}
.comp-table td:first-child a{color:var(--tx);text-decoration:none;transition:color var(--tr)}
.comp-table td:first-child a:hover{color:var(--gold)}
.comp-era{font-family:var(--fm);font-size:.58rem;letter-spacing:.1em;padding:.2rem .5rem;border-radius:3px;white-space:nowrap}
.era-ancient{background:rgba(200,132,90,.15);color:#C8845A}
.era-medieval{background:rgba(122,168,216,.15);color:#7AA8D8}
.era-renaissance{background:rgba(159,200,122,.15);color:#9FC87A}
.era-19c{background:rgba(200,168,90,.15);color:#C8A85A}
.era-wwi{background:rgba(212,150,42,.15);color:#D4962A}
.era-wwii{background:rgba(200,90,90,.15);color:#C85A5A}
.era-modern{background:rgba(90,200,160,.15);color:#5AC8A0}
.comp-level{font-family:var(--fm);font-size:.62rem;letter-spacing:.08em}
.level-trivial{color:#C85A5A}.level-weak{color:#C8905A}.level-moderate{color:#C8A85A}.level-strong{color:#5AC8A0}.level-unbreakable{color:#A07FCC}
@media(max-width:768px){
.comp-search{width:100%}
.comp-controls{flex-direction:column;align-items:stretch}
.comp-count{margin-left:0;text-align:center}
}
</style>
</head>
<body>
<a class="skip-link" href="#main-content">Skip to main content</a>
<nav class="museum-nav" aria-label="Primary">
<div class="nav-inner">
<a href="index.html" class="nav-logo">
<svg class="nav-logo-icon" viewBox="0 0 32 32" fill="none">
<circle cx="16" cy="16" r="14" stroke="currentColor" stroke-width="1.5"/>
<circle cx="16" cy="16" r="8" stroke="currentColor" stroke-width="1"/>
<circle cx="16" cy="16" r="2" fill="currentColor"/>
<line x1="16" y1="2" x2="16" y2="6" stroke="currentColor" stroke-width="1.5"/>
<line x1="16" y1="26" x2="16" y2="30" stroke="currentColor" stroke-width="1.5"/>
<line x1="2" y1="16" x2="6" y2="16" stroke="currentColor" stroke-width="1.5"/>
<line x1="26" y1="16" x2="30" y2="16" stroke="currentColor" stroke-width="1.5"/>
</svg>
<span class="nav-logo-text">The Cipher Museum</span>
</a>
<ul class="nav-links">
<li><a href="index.html">Entrance</a></li>
<li><a href="museum-map.html">Museum Map</a></li>
<li><a href="timeline.html">Timeline</a></li>
<li><a href="comparison.html" class="active">Comparison</a></li>
<li><a href="challenges.html">Challenges</a></li>
<li><a href="glossary.html">Glossary</a></li>
<li><a href="cryptanalysis.html">Cryptanalysis Techniques</a></li>
<li><a href="further-reading.html">Further Reading</a></li>
</ul>
</div>
</nav>
<main id="main-content" tabindex="-1">
<div class="page-hero">
<div class="breadcrumb">
<a href="index.html">Entrance</a><span>›</span>
Cipher Comparison
</div>
<span class="page-eyebrow">117 Cipher Systems from the 139-Exhibit Collection</span>
<h1 class="page-title">Cipher Comparison Table</h1>
<p class="page-tagline">Sort, filter, and compare every cipher system in the museum by type, era, security, and method. Biographies and context-only exhibits are not included here — see the <a href="museum-map.html">Museum Map</a> for the full 139-exhibit roster.</p>
</div>
<section class="section">
<div class="container">
<div class="comp-controls">
<input type="search" class="comp-search" id="cipher-search" placeholder="Search ciphers…" aria-label="Search ciphers">
<select class="comp-filter" id="type-filter" aria-label="Filter by type">
<option value="">All Types</option>
<option value="Substitution">Substitution</option>
<option value="Transposition">Transposition</option>
<option value="Polyalphabetic">Polyalphabetic</option>
<option value="Fractionation">Fractionation</option>
<option value="Machine">Machine</option>
<option value="Steganography">Steganography</option>
<option value="Code">Code</option>
<option value="Stream">Stream</option>
<option value="Nomenclator">Nomenclator</option>
<option value="Asymmetric">Asymmetric</option>
<option value="Hash">Hash</option>
<option value="ARG">ARG / Puzzle</option>
<option value="Cultural">Cultural</option>
<option value="Unsolved">Unsolved</option>
<option value="Signal Encoding">Signal Encoding</option>
<option value="Wordplay">Wordplay</option>
<option value="Intelligence">Intelligence</option>
</select>
<select class="comp-filter" id="era-filter" aria-label="Filter by era">
<option value="">All Eras</option>
<option value="Ancient">Ancient</option>
<option value="Medieval">Medieval</option>
<option value="Renaissance">Renaissance</option>
<option value="Baroque">Baroque</option>
<option value="19th Century">19th Century</option>
<option value="World War I">World War I / Interwar</option>
<option value="World War II">World War II</option>
<option value="Modern">Modern</option>
</select>
<select class="comp-filter" id="security-filter" aria-label="Filter by security level">
<option value="">All Security Levels</option>
<option value="Trivial">Trivial</option>
<option value="Weak">Weak</option>
<option value="Moderate">Moderate</option>
<option value="Strong">Strong</option>
<option value="Broken">Broken</option>
<option value="Unbreakable">Unbreakable</option>
</select>
<select class="comp-filter" id="hall-filter" aria-label="Filter by hall">
<option value="">All Halls</option>
<option value="I">Hall I</option>
<option value="II">Hall II</option>
<option value="III">Hall III</option>
<option value="IV">Hall IV</option>
<option value="V">Hall V</option>
<option value="VI">Hall VI</option>
<option value="VII">Hall VII</option>
<option value="VIII">Hall VIII</option>
<option value="IX">Hall IX</option>
<option value="X">Hall X</option>
<option value="XI">Hall XI</option>
<option value="XII">Hall XII</option>
<option value="XIII">Hall XIII</option>
</select>
<select class="comp-filter" id="solved-filter" aria-label="Filter by solved status">
<option value="">All Statuses</option>
<option value="Solved">Solved</option>
<option value="Unsolved">Unsolved</option>
</select>
<span class="comp-count" id="cipher-count">Showing 117 of 117</span>
</div>
<div class="comp-table-wrap">
<table class="comp-table" id="cipher-table">
<thead>
<tr>
<th data-col="name">Cipher</th>
<th data-col="era">Era</th>
<th data-col="year">Year</th>
<th data-col="type">Type</th>
<th data-col="key">Key Method</th>
<th data-col="security">Security</th>
<th data-col="hall">Hall</th>
</tr>
</thead>
<tbody id="cipher-tbody">
</tbody>
</table>
</div>
</div>
</section>
</main>
<footer></footer>
<script src="js/nav.js" defer></script>
<script>
(function() {
var CIPHERS = [
{ name:'Atbash', href:'ciphers/atbash.html', era:'Ancient', year:-600, type:'Substitution', key:'Reversed alphabet', security:'Trivial', hall:'I' },
{ name:'Scytale', href:'ciphers/scytale.html', era:'Ancient', year:-500, type:'Transposition', key:'Rod diameter', security:'Trivial', hall:'I' },
{ name:'Caesar', href:'ciphers/caesar.html', era:'Ancient', year:-58, type:'Substitution', key:'Shift number (0–25)', security:'Trivial', hall:'I' },
{ name:'Polybius Square', href:'ciphers/polybius.html', era:'Ancient', year:-150, type:'Fractionation', key:'Grid arrangement', security:'Trivial', hall:'I' },
{ name:'ROT13', href:'ciphers/rot13.html', era:'Modern', year:1980, type:'Substitution', key:'Fixed shift of 13', security:'Trivial', hall:'I' },
{ name:'Monoalphabetic', href:'ciphers/monoalphabetic.html', era:'Medieval', year:850, type:'Substitution', key:'Permuted alphabet', security:'Weak', hall:'II' },
{ name:'Homophonic', href:'ciphers/homophonic.html', era:'Renaissance', year:1401, type:'Substitution', key:'Substitution table', security:'Moderate', hall:'II' },
{ name:'Babington Plot', href:'ciphers/babington.html', era:'Renaissance', year:1586, type:'Nomenclator', key:'Symbol set + nomenclator', security:'Weak', hall:'II' },
{ name:'Great Cipher (Rossignols)', href:'ciphers/great-cipher.html', era:'Baroque', year:1626, type:'Nomenclator', key:'Codebook (~587 codewords)', security:'Strong', hall:'II' },
{ name:'Playfair', href:'ciphers/playfair.html', era:'19th Century', year:1854, type:'Substitution', key:'5×5 key square', security:'Moderate', hall:'II' },
{ name:'Four-Square', href:'ciphers/four-square.html', era:'19th Century', year:1854, type:'Substitution', key:'Two 5×5 key squares', security:'Moderate', hall:'II' },
{ name:'Two-Square', href:'ciphers/two-square.html', era:'19th Century', year:1901, type:'Substitution', key:'Two 5×5 key squares', security:'Moderate', hall:'II' },
{ name:'Hill', href:'ciphers/hill.html', era:'Modern', year:1929, type:'Substitution', key:'Matrix key', security:'Moderate', hall:'II' },
{ name:'Vigenère', href:'ciphers/vigenere.html', era:'Renaissance', year:1553, type:'Polyalphabetic', key:'Keyword', security:'Moderate', hall:'III' },
{ name:'Beaufort', href:'ciphers/beaufort.html', era:'19th Century', year:1857, type:'Polyalphabetic', key:'Keyword', security:'Moderate', hall:'III' },
{ name:'Porta', href:'ciphers/porta.html', era:'Renaissance', year:1563, type:'Polyalphabetic', key:'Keyword', security:'Moderate', hall:'III' },
{ name:'Gronsfeld', href:'ciphers/gronsfeld.html', era:'Renaissance', year:1700, type:'Polyalphabetic', key:'Numeric key', security:'Weak', hall:'III' },
{ name:'Running Key', href:'ciphers/running-key.html', era:'19th Century', year:1800, type:'Polyalphabetic', key:'Book/text key', security:'Moderate', hall:'III' },
{ name:'Rail Fence', href:'ciphers/rail-fence.html', era:'Ancient', year:-500, type:'Transposition', key:'Number of rails', security:'Trivial', hall:'IV' },
{ name:'Columnar', href:'ciphers/columnar.html', era:'19th Century', year:1850, type:'Transposition', key:'Keyword', security:'Weak', hall:'IV' },
{ name:'Double Transposition', href:'ciphers/double-transposition.html', era:'World War I', year:1914, type:'Transposition', key:'Two keywords', security:'Strong', hall:'IV' },
{ name:'Bifid', href:'ciphers/bifid.html', era:'19th Century', year:1901, type:'Fractionation', key:'5×5 key square', security:'Moderate', hall:'IV' },
{ name:'Trifid', href:'ciphers/trifid.html', era:'19th Century', year:1901, type:'Fractionation', key:'3×3×3 key cube', security:'Moderate', hall:'IV' },
{ name:'Fractionated Morse', href:'ciphers/fractionated-morse.html', era:'19th Century', year:1890, type:'Fractionation', key:'Keyword alphabet', security:'Moderate', hall:'IV' },
{ name:'Nihilist', href:'ciphers/nihilist.html', era:'19th Century', year:1880, type:'Polyalphabetic', key:'Polybius + keyword', security:'Moderate', hall:'V' },
{ name:'ADFGX', href:'ciphers/adfgx.html', era:'World War I', year:1918, type:'Fractionation', key:'Polybius + transposition', security:'Strong', hall:'V' },
{ name:'ADFGVX', href:'ciphers/adfgvx.html', era:'World War I', year:1918, type:'Fractionation', key:'Polybius + transposition', security:'Strong', hall:'V' },
{ name:'Bazeries', href:'ciphers/bazeries.html', era:'19th Century', year:1898, type:'Substitution', key:'Number + reversed segment', security:'Moderate', hall:'V' },
{ name:'Straddling Checkerboard', href:'ciphers/straddling-checkerboard.html', era:'19th Century', year:1880, type:'Fractionation', key:'Frequency-weighted grid', security:'Moderate', hall:'V' },
{ name:'VIC', href:'ciphers/vic.html', era:'World War II', year:1950, type:'Substitution', key:'Complex key derivation', security:'Strong', hall:'V' },
{ name:'Stager', href:'ciphers/stager.html', era:'19th Century', year:1861, type:'Transposition', key:'Route pattern', security:'Weak', hall:'VI' },
{ name:'Confederate Vigenère', href:'ciphers/confederate-vigenere.html', era:'19th Century', year:1862, type:'Polyalphabetic', key:'Keyword + brass disk', security:'Moderate', hall:'VI' },
{ name:'Dictionary Code', href:'ciphers/dictionary-code.html', era:'19th Century', year:1860, type:'Code', key:'Shared dictionary', security:'Moderate', hall:'VI' },
{ name:'Alberti Disk', href:'ciphers/alberti-disk.html', era:'Renaissance', year:1467, type:'Polyalphabetic', key:'Disk setting + indicator', security:'Moderate', hall:'VII' },
{ name:'Jefferson Disk', href:'ciphers/jefferson-disk.html', era:'19th Century', year:1795, type:'Polyalphabetic', key:'26-disk arrangement', security:'Strong', hall:'VII' },
{ name:'Chaocipher', href:'ciphers/chaocipher.html', era:'World War I', year:1918, type:'Machine', key:'Two permuting alphabets', security:'Strong', hall:'VII' },
{ name:'Enigma', href:'ciphers/enigma.html', era:'World War II', year:1923, type:'Machine', key:'Rotor order + plugboard', security:'Strong', hall:'VII' },
{ name:'M-209 (Hagelin C-38)', href:'ciphers/m209.html', era:'World War II', year:1940, type:'Machine', key:'Six-wheel pin/lug', security:'Moderate', hall:'VII' },
{ name:'Lorenz', href:'ciphers/lorenz.html', era:'World War II', year:1940, type:'Machine', key:'12-wheel settings', security:'Strong', hall:'VII' },
{ name:'Purple (Type 97)', href:'ciphers/purple.html', era:'World War II', year:1939, type:'Machine', key:'Stepping switch wiring', security:'Strong', hall:'VII' },
{ name:'Navajo Code Talkers', href:'ciphers/navajo-code-talkers.html', era:'World War II', year:1942, type:'Code', key:'Navajo language', security:'Unbreakable', hall:'VII' },
{ name:'Pigpen', href:'ciphers/pigpen.html', era:'Medieval', year:1200, type:'Substitution', key:'Grid positions', security:'Trivial', hall:'VIII' },
{ name:'Bacon\'s Cipher', href:'ciphers/bacon.html', era:'Renaissance', year:1605, type:'Steganography', key:'Binary font encoding', security:'Weak', hall:'VIII' },
{ name:'Tap Code', href:'ciphers/tap-code.html', era:'19th Century', year:1880, type:'Fractionation', key:'Polybius variant', security:'Trivial', hall:'VIII' },
{ name:'Voynich Manuscript', href:'ciphers/voynich.html', era:'Renaissance', year:1420, type:'Unsolved', key:'Unknown', security:'Unbreakable', hall:'VIII' },
{ name:'Copiale Cipher', href:'ciphers/copiale.html', era:'Baroque', year:1730, type:'Substitution', key:'Homophonic + nulls', security:'Moderate', hall:'VIII' },
{ name:'Beale Ciphers', href:'ciphers/beale.html', era:'19th Century', year:1820, type:'Code', key:'Book cipher', security:'Strong', hall:'VIII' },
{ name:'Zodiac Cipher', href:'ciphers/zodiac.html', era:'Modern', year:1969, type:'Substitution', key:'Homophonic + transposition',security:'Strong', hall:'VIII' },
{ name:'Kryptos', href:'ciphers/kryptos.html', era:'Modern', year:1990, type:'Polyalphabetic', key:'Vigenère + transposition', security:'Unbreakable', hall:'VIII' },
{ name:'One-Time Pad', href:'ciphers/one-time-pad.html', era:'World War I', year:1882, type:'Stream', key:'Random key = message length',security:'Unbreakable',hall:'IX' },
{ name:'Vernam', href:'ciphers/vernam.html', era:'World War I', year:1917, type:'Stream', key:'Random tape', security:'Unbreakable', hall:'IX' },
{ name:'Solitaire / Pontifex', href:'ciphers/solitaire.html', era:'Modern', year:1999, type:'Stream', key:'Card deck + passphrase', security:'Strong', hall:'IX' },
{ name:'Egyptian Substitution',href:'ciphers/egyptian-substitution.html',era:'Ancient', year:-1900, type:'Substitution', key:'Pictographic alphabet', security:'Trivial', hall:'I' },
{ name:'Histiaeus Tattoo', href:'ciphers/histiaeus-tattoo.html', era:'Ancient', year:-499, type:'Steganography', key:'Shaved scalp concealment', security:'Trivial', hall:'I' },
{ name:'Aeneas Tacticus', href:'ciphers/aeneas-tacticus.html', era:'Ancient', year:-360, type:'Steganography', key:'Hydraulic / hole pattern', security:'Weak', hall:'I' },
{ name:'Kama Sutra Cipher', href:'ciphers/kama-sutra.html', era:'Ancient', year:400, type:'Substitution', key:'Paired letter exchange', security:'Trivial', hall:'I' },
{ name:'Arabic Nomenclators', href:'ciphers/arabic-nomenclators.html', era:'Medieval', year:855, type:'Nomenclator', key:'Letter codes + keywords', security:'Weak', hall:'I' },
{ name:'Joseon Yeokhak', href:'ciphers/joseon-yeokhak.html', era:'Medieval', year:1400, type:'Substitution', key:'Hexagram shift (mod 26)', security:'Trivial', hall:'I' },
{ name:'Amharic Ge\'ez Ciphers',href:'ciphers/amharic-ge-ez-ciphers.html',era:'Medieval', year:1300, type:'Substitution', key:'Keyed monoalphabetic', security:'Trivial', hall:'I' },
{ name:'Nomenclator (generic)',href:'ciphers/nomenclator.html', era:'Renaissance', year:1380, type:'Nomenclator', key:'Codebook + cipher alphabet',security:'Moderate', hall:'II' },
{ name:'Trithemius', href:'ciphers/trithemius.html', era:'Renaissance', year:1518, type:'Polyalphabetic', key:'Progressive shift table', security:'Weak', hall:'III' },
{ name:'Affine Cipher', href:'ciphers/affine.html', era:'Renaissance', year:1500, type:'Substitution', key:'Two integers a, b mod 26', security:'Weak', hall:'III' },
{ name:'Autokey (generic)', href:'ciphers/autokey.html', era:'Renaissance', year:1553, type:'Polyalphabetic', key:'Plaintext-primed key', security:'Moderate', hall:'III' },
{ name:'Wallis Ciphers', href:'ciphers/wallis-ciphers.html', era:'Baroque', year:1653, type:'Polyalphabetic', key:'Polyalphabetic + codes', security:'Moderate', hall:'III' },
{ name:'Wheatstone Cryptograph',href:'ciphers/wheatstone.html', era:'19th Century', year:1867, type:'Machine', key:'Two-disk mechanical device',security:'Moderate', hall:'III' },
{ name:'Cardano Autokey', href:'ciphers/cardano-autokey.html', era:'Renaissance', year:1550, type:'Polyalphabetic', key:'Reciprocal key derivation', security:'Moderate', hall:'V' },
{ name:'Argenti Family', href:'ciphers/argenti.html', era:'Renaissance', year:1580, type:'Nomenclator', key:'Codebook + polyalphabetic', security:'Strong', hall:'V' },
{ name:'Cardano Grille', href:'ciphers/cardano-grille.html', era:'Renaissance', year:1550, type:'Steganography', key:'Physical grille template', security:'Moderate', hall:'V' },
{ name:'Culper Ring Code', href:'ciphers/culper-ring.html', era:'19th Century', year:1778, type:'Code', key:'Numbered codebook', security:'Moderate', hall:'V' },
{ name:'Null Cipher', href:'ciphers/null-cipher.html', era:'Renaissance', year:1550, type:'Steganography', key:'Word/position pattern', security:'Weak', hall:'V' },
{ name:'Book Cipher (generic)',href:'ciphers/book-cipher.html', era:'Baroque', year:1680, type:'Code', key:'Shared book + page/line', security:'Moderate', hall:'V' },
{ name:'Arnold-André Cipher', href:'ciphers/arnold-andre.html', era:'19th Century', year:1780, type:'Code', key:'Book cipher (Blackstone)', security:'Moderate', hall:'V' },
{ name:'IRA Book Cipher', href:'ciphers/ira-book-cipher.html', era:'Modern', year:1970, type:'Code', key:'Book cipher', security:'Moderate', hall:'V' },
{ name:'Che Guevara VIC', href:'ciphers/che-guevara.html', era:'Modern', year:1960, type:'Substitution', key:'Checkerboard + date key', security:'Strong', hall:'V' },
{ name:'Diana Cryptosystem', href:'ciphers/diana-cryptosystem.html', era:'Modern', year:1950, type:'Stream', key:'Diana table + OTP pad', security:'Moderate', hall:'V' },
{ name:'Vietnamese Underground',href:'ciphers/vietnamese-underground.html',era:'Modern', year:1965, type:'Code', key:'Party phrase books', security:'Moderate', hall:'V' },
{ name:'Red Army Faction OTP', href:'ciphers/red-army-faction.html', era:'Modern', year:1970, type:'Stream', key:'One-time pad', security:'Unbreakable', hall:'V' },
{ name:'Chinese Telegraph', href:'ciphers/chinese-telegraph.html', era:'19th Century', year:1871, type:'Code', key:'Numeric codebook', security:'Moderate', hall:'VI' },
{ name:'Morse Code', href:'ciphers/morse.html', era:'19th Century', year:1844, type:'Signal Encoding', key:'Dot-dash alphabet', security:'Trivial', hall:'VI' },
{ name:'Zimmermann Telegram', href:'ciphers/zimmermann.html', era:'World War I', year:1917, type:'Code', key:'Diplomatic codebook', security:'Weak', hall:'VI' },
{ name:'Commercial Codebooks', href:'ciphers/commercial-codebooks.html', era:'19th Century', year:1870, type:'Code', key:'Commercial codebook', security:'Moderate', hall:'VI' },
{ name:'Latin American Codebooks',href:'ciphers/latin-american-codebooks.html',era:'19th Century',year:1880,type:'Code', key:'Adapted ATP codebook', security:'Moderate', hall:'VI' },
{ name:'Slidex', href:'ciphers/slidex.html', era:'World War II', year:1943, type:'Code', key:'Panel + stencil', security:'Moderate', hall:'VI' },
{ name:'Fialka M-125', href:'ciphers/fialka.html', era:'Modern', year:1956, type:'Machine', key:'10-rotor + plugboard', security:'Strong', hall:'VII' },
{ name:'KL-7', href:'ciphers/kl-7.html', era:'Modern', year:1952, type:'Machine', key:'Rotor + stepping', security:'Strong', hall:'VII' },
{ name:'SIGABA', href:'ciphers/sigaba.html', era:'World War II', year:1935, type:'Machine', key:'15-rotor machine', security:'Strong', hall:'VII' },
{ name:'Typex', href:'ciphers/typex.html', era:'World War II', year:1937, type:'Machine', key:'5-rotor machine', security:'Strong', hall:'VII' },
{ name:'Geheimschreiber T52', href:'ciphers/geheimschreiber.html', era:'World War II', year:1930, type:'Machine', key:'10-wheel XOR stream', security:'Strong', hall:'VII' },
{ name:'Kryha', href:'ciphers/kryha.html', era:'World War I', year:1926, type:'Machine', key:'Rotating disk (irregular)', security:'Weak', hall:'VII' },
{ name:'M-94 / M-138-A', href:'ciphers/m-94.html', era:'World War I', year:1922, type:'Machine', key:'25-disk wheel cipher', security:'Moderate', hall:'VII' },
{ name:'Red (Type A)', href:'ciphers/red-type-a.html', era:'World War II', year:1937, type:'Machine', key:'Stepping switch (6-20)', security:'Moderate', hall:'VII' },
{ name:'JN-25', href:'ciphers/jn-25.html', era:'World War II', year:1939, type:'Code', key:'Additive codebook', security:'Strong', hall:'VII' },
{ name:'Freemason Pigpen', href:'ciphers/freemason-pigpen.html', era:'Medieval', year:1700, type:'Substitution', key:'Grid / tic-tac-toe positions',security:'Trivial', hall:'VIII' },
{ name:'Bach BACH Motif', href:'ciphers/bach-motif.html', era:'Baroque', year:1685, type:'Substitution', key:'B♭-A-C-B musical cipher', security:'Trivial', hall:'VIII' },
{ name:'Sator Square', href:'ciphers/sator-square.html', era:'Ancient', year:79, type:'Wordplay', key:'Palindrome word square', security:'Trivial', hall:'VIII' },
{ name:'Dorabella Cipher', href:'ciphers/dorabella.html', era:'19th Century', year:1897, type:'Unsolved', key:'Unknown (87 symbols)', security:'Unbreakable', hall:'XII' },
{ name:'Shugborough Inscription',href:'ciphers/shugborough.html', era:'Baroque', year:1748, type:'Unsolved', key:'Unknown (OUOSVAVV)', security:'Unbreakable', hall:'XII' },
{ name:'D\'Agapeyeff', href:'ciphers/dagapeyeff.html', era:'Modern', year:1939, type:'Unsolved', key:'Unknown', security:'Unbreakable', hall:'XII' },
{ name:'Somerton Man', href:'ciphers/somerton-man.html', era:'Modern', year:1948, type:'Unsolved', key:'Unknown', security:'Unbreakable', hall:'XII' },
{ name:'McCormick', href:'ciphers/mccormick.html', era:'Modern', year:1999, type:'Unsolved', key:'Unknown', security:'Unbreakable', hall:'XII' },
{ name:'Phaistos Disc', href:'ciphers/phaistos-disc.html', era:'Ancient', year:-1700, type:'Unsolved', key:'Unknown (241 impressions)', security:'Unbreakable', hall:'XII' },
{ name:'Field Hollers', href:'ciphers/field-hollers.html', era:'19th Century', year:1860, type:'Steganography', key:'Musical / vocal coding', security:'Moderate', hall:'XIII' },
{ name:'Gold-Bug', href:'ciphers/gold-bug.html', era:'19th Century', year:1843, type:'Cultural', key:'Monoalphabetic (fiction)', security:'Trivial', hall:'XIII' },
{ name:'Dancing Men', href:'ciphers/dancing-men.html', era:'19th Century', year:1903, type:'Cultural', key:'Pictographic substitution', security:'Trivial', hall:'XIII' },
{ name:'Da Vinci Code', href:'ciphers/da-vinci-code.html', era:'Modern', year:2003, type:'Cultural', key:'Atbash + Fibonacci', security:'Trivial', hall:'XIII' },
{ name:'National Treasure', href:'ciphers/national-treasure.html', era:'Modern', year:2004, type:'Cultural', key:'Book cipher (Declaration)', security:'Trivial', hall:'XIII' },
{ name:'Gravity Falls Ciphers',href:'ciphers/gravity-falls.html', era:'Modern', year:2012, type:'Cultural', key:'Caesar / Vigenère / Atbash',security:'Trivial', hall:'XIII' },
{ name:'Cicada 3301', href:'ciphers/cicada-3301.html', era:'Modern', year:2012, type:'ARG', key:'Multi-layer (RSA + rune + steganography)',security:'Strong', hall:'XIII' },
{ name:'MIT Mystery Hunt', href:'ciphers/mit-mystery-hunt.html', era:'Modern', year:1981, type:'ARG', key:'Puzzle competition format', security:'Moderate', hall:'XIII' },
{ name:'DES', href:'ciphers/des.html', era:'Modern', year:1975, type:'Machine', key:'56-bit key (Feistel)', security:'Broken', hall:'XI' },
{ name:'AES', href:'ciphers/aes.html', era:'Modern', year:2001, type:'Machine', key:'128/192/256-bit key', security:'Unbreakable', hall:'XI' },
{ name:'RSA', href:'ciphers/rsa.html', era:'Modern', year:1978, type:'Asymmetric', key:'Prime factorization', security:'Strong', hall:'XI' },
{ name:'Diffie-Hellman', href:'ciphers/diffie-hellman.html', era:'Modern', year:1976, type:'Asymmetric', key:'Discrete logarithm', security:'Strong', hall:'XI' },
{ name:'SHA-256', href:'ciphers/sha256.html', era:'Modern', year:2001, type:'Hash', key:'Fixed 256-bit digest', security:'Strong', hall:'XI' },
{ name:'VENONA', href:'ciphers/venona.html', era:'World War II', year:1943, type:'Intelligence', key:'OTP pad reuse analysis', security:'Strong', hall:'XI' },
{ name:'SIGSALY', href:'ciphers/sigsaly.html', era:'World War II', year:1943, type:'Machine', key:'Thermal noise + OTP', security:'Unbreakable', hall:'XI' },
{ name:'Microdot', href:'ciphers/microdot.html', era:'World War II', year:1925, type:'Steganography', key:'Physical size reduction', security:'Moderate', hall:'XI' }
];
var tbody = document.getElementById('cipher-tbody');
var searchInput = document.getElementById('cipher-search');
var typeFilter = document.getElementById('type-filter');
var eraFilter = document.getElementById('era-filter');
var securityFilter = document.getElementById('security-filter');
var hallFilter = document.getElementById('hall-filter');
var solvedFilter = document.getElementById('solved-filter');
var countEl = document.getElementById('cipher-count');
var eraClasses = { 'Ancient':'ancient','Medieval':'medieval','Renaissance':'renaissance','Baroque':'renaissance','19th Century':'19c','World War I':'wwi','World War II':'wwii','Modern':'modern' };
var secClasses = { 'Trivial':'trivial','Weak':'weak','Moderate':'moderate','Strong':'strong','Unbreakable':'unbreakable' };
function solvedStatus(c) {
if (c.type === 'Unsolved' || c.hall === 'XII') return 'Unsolved';
return 'Solved';
}
// Build rows
CIPHERS.forEach(function(c, i) {
var tr = document.createElement('tr');
tr.dataset.index = i;
var yearDisplay = c.year < 0 ? Math.abs(c.year) + ' BC' : c.year;
tr.innerHTML =
'<td><a href="' + c.href + '">' + c.name + '</a></td>' +
'<td><span class="comp-era era-' + (eraClasses[c.era]||'') + '">' + c.era + '</span></td>' +
'<td>' + yearDisplay + '</td>' +
'<td>' + c.type + '</td>' +
'<td>' + c.key + '</td>' +
'<td><span class="comp-level level-' + (secClasses[c.security]||'').toLowerCase() + '">' + c.security + '</span></td>' +
'<td>' + c.hall + '</td>';
tbody.appendChild(tr);
});
// Sort
var sortCol = 'year';
var sortDir = 1;
var ths = document.querySelectorAll('.comp-table th[data-col]');
ths.forEach(function(th) {
th.addEventListener('click', function() {
var col = th.dataset.col;
if (col === sortCol) { sortDir *= -1; }
else { sortCol = col; sortDir = 1; }
ths.forEach(function(t) { t.classList.remove('sorted-asc','sorted-desc'); });
th.classList.add(sortDir === 1 ? 'sorted-asc' : 'sorted-desc');
sortTable();
});
});
function sortTable() {
var rows = Array.from(tbody.querySelectorAll('tr'));
rows.sort(function(a, b) {
var ai = +a.dataset.index, bi = +b.dataset.index;
var ca = CIPHERS[ai], cb = CIPHERS[bi];
var va, vb;
if (sortCol === 'year') { va = ca.year; vb = cb.year; }
else if (sortCol === 'name') { va = ca.name.toLowerCase(); vb = cb.name.toLowerCase(); }
else if (sortCol === 'era') { va = ca.year; vb = cb.year; }
else if (sortCol === 'security') {
var order = { Trivial:0, Weak:1, Moderate:2, Strong:3, Unbreakable:4 };
va = order[ca.security]; vb = order[cb.security];
}
else { va = ca[sortCol] ? ca[sortCol].toLowerCase() : ''; vb = cb[sortCol] ? cb[sortCol].toLowerCase() : ''; }
if (va < vb) return -1 * sortDir;
if (va > vb) return 1 * sortDir;
return 0;
});
rows.forEach(function(r) { tbody.appendChild(r); });
}
// Filter
function applyFilters() {
var search = searchInput.value.toLowerCase();
var type = typeFilter.value;
var era = eraFilter.value;
var security = securityFilter.value;
var hall = hallFilter.value;
var solved = solvedFilter.value;
var visible = 0;
var rows = tbody.querySelectorAll('tr');
rows.forEach(function(row) {
var c = CIPHERS[+row.dataset.index];
var show = true;
if (search && c.name.toLowerCase().indexOf(search) === -1 && c.type.toLowerCase().indexOf(search) === -1 && c.key.toLowerCase().indexOf(search) === -1) show = false;
if (type && c.type !== type) show = false;
if (era && c.era !== era) show = false;
if (security && c.security !== security) show = false;
if (hall && c.hall !== hall) show = false;
if (solved && solvedStatus(c) !== solved) show = false;
row.classList.toggle('hidden', !show);
if (show) visible++;
});
countEl.textContent = 'Showing ' + visible + ' of ' + CIPHERS.length;
}
searchInput.addEventListener('input', applyFilters);
typeFilter.addEventListener('change', applyFilters);
eraFilter.addEventListener('change', applyFilters);
securityFilter.addEventListener('change', applyFilters);
hallFilter.addEventListener('change', applyFilters);
solvedFilter.addEventListener('change', applyFilters);
// Initial sort by year
document.querySelector('th[data-col="year"]').classList.add('sorted-asc');
sortTable();
applyFilters();
})();
</script>
<script src="js/lightbox.js"></script>
</body>
</html>