-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
308 lines (291 loc) · 14.3 KB
/
Copy pathindex.html
File metadata and controls
308 lines (291 loc) · 14.3 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="NULLKEY — a future terminal for secure, ephemeral password and PIN generation. Local-only. Never stored." />
<meta name="robots" content="noindex,nofollow" />
<title>NULLKEY // Ephemeral Key Terminal</title>
<link rel="icon" href="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><rect x='2' y='2' width='28' height='28' rx='6' fill='%230b0c10'/><path d='M8 8h3v16H8zM21 8h3v16h-3zM11 16l10-8v6l-10 8z' fill='%23e0606a'/></svg>" />
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<a class="skip-link" href="#terminal">Skip to terminal</a>
<div class="bg-grid" aria-hidden="true"></div>
<div class="bg-scan" aria-hidden="true"></div>
<div class="bg-glow" aria-hidden="true"></div>
<header class="site-header" role="banner">
<div class="wrap header-inner">
<a class="brand" href="#top" aria-label="NULLKEY — home">
<svg class="brand-mark" viewBox="0 0 32 32" aria-hidden="true">
<defs>
<linearGradient id="lg-key" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#ff8894"/>
<stop offset="100%" stop-color="#c44b56"/>
</linearGradient>
</defs>
<rect x="1.5" y="1.5" width="29" height="29" rx="7" fill="#0d0e12" stroke="#24272d"/>
<rect x="7" y="7" width="2.2" height="18" rx="0.6" fill="url(#lg-key)"/>
<rect x="22.8" y="7" width="2.2" height="18" rx="0.6" fill="url(#lg-key)"/>
<path d="M10 16 L22 8 V12 L14 16 L22 20 V24 Z" fill="url(#lg-key)"/>
<circle cx="26" cy="26" r="1.6" fill="#e0606a"/>
</svg>
<span class="brand-word">
<span class="brand-null">NULL</span><span class="brand-sep">/</span><span class="brand-key">KEY</span>
</span>
</a>
<div class="sys-readout" aria-hidden="true">
<span class="sys-dot"></span>
<span class="sys-label">SESSION</span>
<span class="sys-value" id="sys-session">—</span>
<span class="sys-sep">·</span>
<span class="sys-label">ENTROPY</span>
<span class="sys-value" id="sys-entropy">—</span>
<span class="sys-sep">·</span>
<span class="sys-label">UPTIME</span>
<span class="sys-value" id="sys-uptime">00:00</span>
<span class="sys-sep">·</span>
<span class="sys-label">GEN</span>
<span class="sys-value" id="sys-gen">0</span>
</div>
</div>
</header>
<main id="top">
<section id="terminal" class="terminal-wrap">
<div class="terminal card" aria-label="Key generation terminal">
<!-- Chrome -->
<div class="term-chrome" aria-hidden="true">
<span class="term-dot term-dot-red"></span>
<span class="term-dot term-dot-yellow"></span>
<span class="term-dot term-dot-green"></span>
<span class="term-title">nullkey@local — /dev/keygen</span>
<span class="term-right"><span class="blink">●</span> LIVE</span>
</div>
<!-- Body: main | side -->
<div class="term-body">
<!-- ============ LEFT: OUTPUT ============ -->
<section class="term-main">
<div class="term-prompt">
<span class="prompt-caret">▸</span>
<span class="prompt-path">~/keygen</span>
<span class="prompt-cmd" id="prompt-cmd">generate --mode=password --len=20</span>
<span class="term-cursor" aria-hidden="true"></span>
</div>
<div class="term-output" aria-live="polite">
<output id="output" class="output" aria-label="Generated value" tabindex="0"></output>
<p id="error" class="error" role="alert" hidden></p>
</div>
<!-- Composition visualization -->
<div class="composition">
<div class="comp-head">
<span class="comp-title">// COMPOSITION</span>
<span class="comp-total" id="comp-total">20 chars · 5 groups</span>
</div>
<div class="comp-bar" aria-hidden="true">
<span class="comp-seg comp-upper" id="comp-seg-upper"></span>
<span class="comp-seg comp-lower" id="comp-seg-lower"></span>
<span class="comp-seg comp-digits" id="comp-seg-digits"></span>
<span class="comp-seg comp-symbols" id="comp-seg-symbols"></span>
<span class="comp-seg comp-dashes" id="comp-seg-dashes"></span>
</div>
<div class="comp-legend">
<span class="lg lg-upper">A-Z <b id="comp-n-upper">0</b></span>
<span class="lg lg-lower">a-z <b id="comp-n-lower">0</b></span>
<span class="lg lg-digits">0-9 <b id="comp-n-digits">0</b></span>
<span class="lg lg-symbols">!@# <b id="comp-n-symbols">0</b></span>
<span class="lg lg-dashes">-_ <b id="comp-n-dashes">0</b></span>
</div>
</div>
<!-- Stat strip -->
<div class="stat-strip">
<div class="stat">
<span class="stat-k">MODE</span>
<span class="stat-v" id="st-mode">PASSWORD</span>
</div>
<div class="stat">
<span class="stat-k">LEN</span>
<span class="stat-v" id="st-len">20</span>
</div>
<div class="stat">
<span class="stat-k">POOL</span>
<span class="stat-v" id="st-pool">89</span>
</div>
<div class="stat">
<span class="stat-k">BITS</span>
<span class="stat-v" id="st-bits">129</span>
</div>
<div class="stat stat-strength" id="st-strength-wrap" data-level="strong">
<span class="stat-k">LVL</span>
<span class="stat-v" id="st-strength">STRONG</span>
</div>
</div>
<!-- Actions -->
<div class="actions">
<button id="btn-refresh" class="btn btn-primary" type="button" aria-label="Regenerate">
<svg class="icon" viewBox="0 0 24 24" aria-hidden="true">
<path d="M21 12a9 9 0 1 1-3.2-6.88" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M21 4v6h-6" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
<span>REGEN</span>
<kbd class="kbd">R</kbd>
</button>
<button id="btn-copy" class="btn btn-ghost" type="button" aria-label="Copy">
<svg class="icon" viewBox="0 0 24 24" aria-hidden="true">
<rect x="9" y="9" width="11" height="11" rx="2" fill="none" stroke="currentColor" stroke-width="2"/>
<path d="M5 15V5a2 2 0 0 1 2-2h10" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
</svg>
<span id="copy-label">COPY</span>
<kbd class="kbd">C</kbd>
</button>
</div>
</section>
<!-- ============ RIGHT: CONTROLS + INTEL ============ -->
<aside class="term-side" aria-label="Controls">
<!-- MODE -->
<div class="panel">
<div class="panel-head">
<span class="panel-title">// MODE</span>
<span class="panel-note" id="mode-hint">password — full charset</span>
</div>
<div class="mode-switch" role="tablist" aria-label="Generator mode">
<button id="mode-password" class="mode-btn is-active" role="tab" aria-selected="true" type="button">
<svg class="m-ico" viewBox="0 0 24 24" aria-hidden="true">
<circle cx="8" cy="13" r="3.2" fill="none" stroke="currentColor" stroke-width="1.8"/>
<path d="M11 13h10M18 13v3M21 13v3" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/>
</svg>
<span>PASSWORD</span>
<kbd class="kbd kbd-side">P</kbd>
</button>
<button id="mode-pin" class="mode-btn" role="tab" aria-selected="false" type="button">
<svg class="m-ico" viewBox="0 0 24 24" aria-hidden="true">
<circle cx="7" cy="7" r="1.3" fill="currentColor"/>
<circle cx="12" cy="7" r="1.3" fill="currentColor"/>
<circle cx="17" cy="7" r="1.3" fill="currentColor"/>
<circle cx="7" cy="12" r="1.3" fill="currentColor"/>
<circle cx="12" cy="12" r="1.3" fill="currentColor"/>
<circle cx="17" cy="12" r="1.3" fill="currentColor"/>
<circle cx="7" cy="17" r="1.3" fill="currentColor"/>
<circle cx="12" cy="17" r="1.3" fill="currentColor"/>
<circle cx="17" cy="17" r="1.3" fill="currentColor"/>
</svg>
<span>PIN</span>
<kbd class="kbd kbd-side">N</kbd>
</button>
<span class="mode-indicator" aria-hidden="true"></span>
</div>
</div>
<!-- LENGTH -->
<div class="panel">
<div class="panel-head">
<span class="panel-title">// LENGTH</span>
<div class="length-display">
<button class="stepper" id="len-dec" type="button" aria-label="Decrease length">−</button>
<input
id="length-number"
class="length-number"
type="number"
inputmode="numeric"
value="20"
min="4"
max="36"
aria-label="Length value"
/>
<button class="stepper" id="len-inc" type="button" aria-label="Increase length">+</button>
</div>
</div>
<input
id="length"
class="slider"
type="range"
min="4"
max="36"
value="20"
step="1"
aria-label="Length slider"
/>
<div class="slider-rail-labels" aria-hidden="true">
<span>4</span><span>12</span><span>20</span><span>28</span><span>36</span>
</div>
</div>
<!-- CHARSET -->
<div class="panel panel-charset">
<div class="panel-head">
<span class="panel-title">// CHARSET</span>
<span class="panel-note" id="charset-count">5 of 5 active</span>
</div>
<fieldset id="options" class="options" aria-label="Password options">
<legend class="sr-only">Character options</legend>
<label class="chip">
<input type="checkbox" id="opt-upper" checked />
<span class="chip-box" aria-hidden="true"></span>
<span class="chip-text">A-Z</span>
</label>
<label class="chip">
<input type="checkbox" id="opt-lower" checked />
<span class="chip-box" aria-hidden="true"></span>
<span class="chip-text">a-z</span>
</label>
<label class="chip">
<input type="checkbox" id="opt-digits" checked />
<span class="chip-box" aria-hidden="true"></span>
<span class="chip-text">0-9</span>
</label>
<label class="chip">
<input type="checkbox" id="opt-symbols" checked />
<span class="chip-box" aria-hidden="true"></span>
<span class="chip-text">!@#$</span>
</label>
<label class="chip">
<input type="checkbox" id="opt-dashes" checked />
<span class="chip-box" aria-hidden="true"></span>
<span class="chip-text">-_</span>
</label>
</fieldset>
</div>
<!-- INTEL (rotating tips) -->
<div class="panel panel-intel">
<div class="panel-head">
<span class="panel-title">// INTEL</span>
<span class="panel-note intel-tag"><span class="intel-pulse"></span>FIELD NOTE</span>
</div>
<div class="tip-stage">
<p class="tip" id="tip-text">Unique keys per account — one breach shouldn't cascade across every service you use.</p>
</div>
<div class="tip-meta">
<span class="tip-counter"><span id="tip-ix">01</span>/<span id="tip-total">06</span></span>
<span class="tip-progress"><span class="tip-progress-fill" id="tip-progress"></span></span>
</div>
</div>
<!-- LOG -->
<div class="panel panel-log">
<div class="panel-head">
<span class="panel-title">// LOG</span>
<span class="panel-note"><span class="sig-dot"></span>STREAM</span>
</div>
<ul class="log" id="log" aria-live="off"></ul>
</div>
</aside>
</div>
<!-- Status bar -->
<div class="status-bar" aria-hidden="true">
<span class="st-item"><span class="st-dot"></span>LOCAL-ONLY</span>
<span class="st-item"><span class="st-dot"></span>NO-STORAGE</span>
<span class="st-item"><span class="st-dot"></span>CSPRNG</span>
<span class="st-spacer"></span>
<span class="st-item st-mute">
<kbd class="kbd">R</kbd>/<kbd class="kbd">␣</kbd> REGEN
·
<kbd class="kbd">P</kbd>/<kbd class="kbd">N</kbd> MODE
·
<kbd class="kbd">C</kbd> COPY
</span>
<span class="st-spacer"></span>
<span class="st-item st-mute">v1.0 // ephemeral</span>
</div>
</div>
</section>
</main>
<div id="toast" class="toast" role="status" aria-live="polite"></div>
<script src="script.js" defer></script>
</body>
</html>