-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocs.html
More file actions
811 lines (760 loc) · 27.7 KB
/
docs.html
File metadata and controls
811 lines (760 loc) · 27.7 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
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Documentation — API Secure</title>
<meta name="description" content="Complete documentation for API Secure. Learn how to encrypt API keys, integrate with AI agents, and understand the security architecture.">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet">
<script src="https://unpkg.com/lucide@latest/dist/umd/lucide.min.js"></script>
<style>
:root {
--bg-primary: #0a0a0f;
--bg-secondary: #111118;
--bg-card: rgba(17, 17, 24, 0.8);
--border-subtle: rgba(255, 255, 255, 0.08);
--border-hover: rgba(0, 212, 255, 0.4);
--cyan: #00d4ff;
--cyan-glow: rgba(0, 212, 255, 0.3);
--text-primary: #ffffff;
--text-secondary: rgba(255, 255, 255, 0.7);
--text-muted: rgba(255, 255, 255, 0.5);
--success: #10b981;
--warning: #f59e0b;
--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
--font-mono: 'JetBrains Mono', monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
font-family: var(--font-sans);
background-color: var(--bg-primary);
color: var(--text-primary);
line-height: 1.6;
overflow-x: hidden;
}
::selection { background: var(--cyan-glow); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-subtle); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan-glow); }
.nav {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 100;
padding: 16px 0;
background: rgba(10, 10, 15, 0.9);
backdrop-filter: blur(12px);
border-bottom: 1px solid var(--border-subtle);
}
.nav-content {
max-width: 1200px;
margin: 0 auto;
padding: 0 24px;
display: flex;
align-items: center;
justify-content: space-between;
}
.logo {
display: flex;
align-items: center;
gap: 10px;
font-weight: 600;
font-size: 1.1rem;
color: var(--text-primary);
text-decoration: none;
}
.logo-icon {
width: 32px;
height: 32px;
background: linear-gradient(135deg, var(--cyan), #0088cc);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
}
.logo-icon i { width: 18px; height: 18px; color: white; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link {
color: var(--text-secondary);
text-decoration: none;
font-size: 0.9rem;
font-weight: 500;
transition: color 0.2s;
}
.nav-link:hover { color: var(--cyan); }
.hero {
min-height: 40vh;
display: flex;
align-items: center;
justify-content: center;
padding: 120px 24px 60px;
position: relative;
overflow: hidden;
}
.particle-canvas {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 0;
}
.hero-content {
position: relative;
z-index: 1;
text-align: center;
max-width: 800px;
}
.hero-badge {
display: inline-flex;
align-items: center;
gap: 8px;
background: var(--bg-card);
border: 1px solid var(--border-subtle);
padding: 8px 16px;
border-radius: 100px;
font-size: 0.85rem;
color: var(--text-secondary);
margin-bottom: 24px;
}
.hero-badge i { width: 14px; height: 14px; color: var(--cyan); }
.hero-title {
font-size: clamp(2rem, 5vw, 3rem);
font-weight: 700;
margin-bottom: 12px;
}
.hero-subtitle {
font-size: 1.1rem;
color: var(--text-secondary);
}
.container {
max-width: 900px;
margin: 0 auto;
padding: 0 24px 80px;
}
.section {
margin-bottom: 60px;
}
.section-title {
font-size: 1.75rem;
font-weight: 700;
margin-bottom: 24px;
display: flex;
align-items: center;
gap: 12px;
}
.section-title i { width: 28px; height: 28px; color: var(--cyan); }
.card {
background: var(--bg-card);
border: 1px solid var(--border-subtle);
border-radius: 16px;
padding: 32px;
margin-bottom: 24px;
backdrop-filter: blur(10px);
}
.card h3 {
font-size: 1.25rem;
margin-bottom: 16px;
color: var(--cyan);
}
.card p, .card li {
color: var(--text-secondary);
margin-bottom: 12px;
}
.card ul { margin-left: 20px; }
.card li { margin-bottom: 8px; }
.steps {
display: flex;
flex-direction: column;
gap: 16px;
}
.step {
display: flex;
align-items: flex-start;
gap: 16px;
padding: 20px;
background: var(--bg-secondary);
border-radius: 12px;
border: 1px solid var(--border-subtle);
}
.step-number {
width: 32px;
height: 32px;
background: var(--cyan);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-family: var(--font-mono);
font-weight: 600;
color: var(--bg-primary);
flex-shrink: 0;
}
.step-content h4 {
font-weight: 600;
margin-bottom: 4px;
}
.step-content p {
color: var(--text-secondary);
font-size: 0.95rem;
}
.code-block {
background: var(--bg-primary);
border: 1px solid var(--border-subtle);
border-radius: 10px;
padding: 16px;
font-family: var(--font-mono);
font-size: 0.85rem;
overflow-x: auto;
margin: 16px 0;
}
.code-block .comment { color: var(--text-muted); }
.code-block .keyword { color: var(--cyan); }
.code-block .string { color: #10b981; }
.spec-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 16px;
}
.spec-item {
background: var(--bg-secondary);
padding: 16px;
border-radius: 10px;
border: 1px solid var(--border-subtle);
}
.spec-label {
font-size: 0.75rem;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 1px;
margin-bottom: 4px;
}
.spec-value {
font-family: var(--font-mono);
color: var(--cyan);
font-size: 0.9rem;
}
.faq-item {
margin-bottom: 24px;
padding-bottom: 24px;
border-bottom: 1px solid var(--border-subtle);
}
.faq-item:last-child {
border-bottom: none;
margin-bottom: 0;
padding-bottom: 0;
}
.faq-question {
font-weight: 600;
font-size: 1.1rem;
margin-bottom: 8px;
display: flex;
align-items: center;
gap: 8px;
}
.faq-question i { width: 18px; height: 18px; color: var(--cyan); }
.faq-answer {
color: var(--text-secondary);
padding-left: 26px;
}
.btn {
display: inline-flex;
align-items: center;
gap: 8px;
background: transparent;
border: 1px solid var(--cyan);
color: var(--cyan);
padding: 12px 24px;
border-radius: 8px;
font-size: 0.95rem;
font-weight: 500;
text-decoration: none;
transition: all 0.2s;
}
.btn:hover {
background: var(--cyan-glow);
box-shadow: 0 0 20px var(--cyan-glow);
}
.btn i { width: 16px; height: 16px; }
.footer {
text-align: center;
padding: 40px 24px;
border-top: 1px solid var(--border-subtle);
}
.footer-text {
color: var(--text-muted);
font-size: 0.85rem;
}
@media (max-width: 640px) {
.nav-links { display: none; }
.hero { padding: 100px 16px 40px; }
.card { padding: 24px; }
.step { flex-direction: column; }
}
</style>
</head>
<body>
<nav class="nav">
<div class="nav-content">
<a href="index.html" class="logo">
<img src="logo.png" alt="API Secure" style="width: 32px; height: 32px; border-radius: 8px;">
<span>API Secure</span>
</a>
<div class="nav-links">
<a href="index.html" class="nav-link">Home</a>
<a href="blog/" class="nav-link">Blog</a>
<a href="encrypt.html" class="nav-link">Encrypt</a>
<a href="decrypt.html" class="nav-link">Decrypt</a>
<a href="https://github.com/CharlescSturt/apisecure" class="nav-link">GitHub</a>
</div>
</div>
</nav>
<section class="hero">
<canvas class="particle-canvas" id="particleCanvas"></canvas>
<div class="hero-content">
<div class="hero-badge">
<i data-lucide="book-open"></i>
<span>Documentation</span>
</div>
<h1 class="hero-title">How API Secure Works</h1>
<p class="hero-subtitle">Zero-server encryption for AI agents and developers</p>
</div>
</section>
<div class="container">
<section class="section">
<h2 class="section-title"><i data-lucide="zap"></i> Quick Start</h2>
<div class="card">
<h3>🔒 Encrypting an API Key</h3>
<div class="steps">
<div class="step">
<div class="step-number">1</div>
<div class="step-content">
<h4>Go to the Encryption Tool</h4>
<p>Visit <a href="encrypt.html" style="color: var(--cyan);">apisecure.app/encrypt</a></p>
</div>
</div>
<div class="step">
<div class="step-number">2</div>
<div class="step-content">
<h4>Enter Your API Key</h4>
<p>Type or paste your API key in the secure input field</p>
</div>
</div>
<div class="step">
<div class="step-number">3</div>
<div class="step-content">
<h4>Copy the Passphrase</h4>
<p>A 24-character passphrase is auto-generated. Copy and save it.</p>
</div>
</div>
<div class="step">
<div class="step-number">4</div>
<div class="step-content">
<h4>Click Encrypt</h4>
<p>Your key is encrypted in-browser using AES-256-GCM</p>
</div>
</div>
<div class="step">
<div class="step-number">5</div>
<div class="step-content">
<h4>Share Securely</h4>
<p>Send the SECDROP-P:... blob + passphrase separately to the recipient</p>
</div>
</div>
</div>
</div>
<div class="card" style="margin-top: 24px;">
<h3>🔓 Decrypting an API Key</h3>
<div class="steps">
<div class="step">
<div class="step-number">1</div>
<div class="step-content">
<h4>Go to the Decryption Tool</h4>
<p>Visit <a href="decrypt.html" style="color: var(--cyan);">apisecure.app/decrypt</a></p>
</div>
</div>
<div class="step">
<div class="step-number">2</div>
<div class="step-content">
<h4>Paste the Encrypted Blob</h4>
<p>Enter the full SECDROP-P:... ciphertext you received</p>
</div>
</div>
<div class="step">
<div class="step-number">3</div>
<div class="step-content">
<h4>Enter the Passphrase</h4>
<p>Type the passphrase shared separately (e.g., "turtle-rainbow-99")</p>
</div>
</div>
<div class="step">
<div class="step-number">4</div>
<div class="step-content">
<h4>Click Decrypt</h4>
<p>Your API key is decrypted in-browser and displayed</p>
</div>
</div>
<div class="step">
<div class="step-number">5</div>
<div class="step-content">
<h4>Copy and Use</h4>
<p>Copy the decrypted key and clear your clipboard after using it</p>
</div>
</div>
</div>
</div>
</section>
<section class="section">
<h2 class="section-title"><i data-lucide="bot"></i> For AI Agents</h2>
<div class="card">
<h3>Option 1: Browser-Based Decryption (Recommended)</h3>
<p>The easiest way for AI agents to decrypt API keys is using the browser automation:</p>
<div class="code-block">
<span class="comment"># Use browser.act() to fill the decrypt form</span>
browser(<span class="keyword">action</span>: <span class="string">"open"</span>, <span class="keyword">targetUrl</span>: <span class="string">"https://apisecure.app/decrypt"</span>)
browser(<span class="keyword">action</span>: <span class="string">"act"</span>, <span class="keyword">request</span>: {
<span class="keyword">kind</span>: <span class="string">"type"</span>,
<span class="keyword">ref</span>: <span class="string">"ciphertext-input"</span>,
<span class="keyword">text</span>: <span class="string">"SECDROP-P:AgHJk3..."</span>
})
browser(<span class="keyword">action</span>: <span class="string">"act"</span>, <span class="keyword">request</span>: {
<span class="keyword">kind</span>: <span class="string">"type"</span>,
<span class="keyword">ref</span>: <span class="string">"passphrase-input"</span>,
<span class="keyword">text</span>: <span class="string">"your-passphrase"</span>
})
browser(<span class="keyword">action</span>: <span class="string">"act"</span>, <span class="keyword">request</span>: {
<span class="keyword">kind</span>: <span class="string">"click"</span>,
<span class="keyword">ref</span>: <span class="string">"decrypt-button"</span>
})
</div>
<p><strong>Why browser-based?</strong> Zero setup, uses the official web tool, fully auditable in real-time.</p>
</div>
<div class="card">
<h3>Option 2: Node.js Decryption Skill</h3>
<p>For command-line workflows or automated systems, use the Node.js decrypt skill:</p>
<div class="code-block">
<span class="comment"># Install the AgentSkill from GitHub</span>
<span class="keyword">git clone</span> https://github.com/CharlescSturt/apisecure
<span class="keyword">cd</span> apisecure
<span class="comment"># Decrypt and store to .env file</span>
<span class="keyword">node</span> store-api-key.js <span class="string">"SECDROP-P:AgHJk3..."</span> <span class="string">"your-passphrase"</span> <span class="string">"ENV_VAR_NAME"</span>
</div>
<p>Example Discord workflow:</p>
<ul>
<li>Human: "Here's the OpenAI key: SECDROP-P:AgD5h8... Passphrase: turtle-rainbow-99"</li>
<li>AI Agent runs decrypt command</li>
<li>API key stored in <code>~/.env</code></li>
</ul>
<p><strong>Skill location:</strong> <a href="https://github.com/CharlescSturt/apisecure" style="color: var(--cyan);">github.com/CharlescSturt/apisecure</a></p>
<a href="https://github.com/CharlescSturt/apisecure" class="btn" style="margin-top: 16px;">
<i data-lucide="github"></i>
View on GitHub
</a>
</div>
</section>
<section class="section">
<h2 class="section-title"><i data-lucide="shield"></i> Security Deep Dive</h2>
<div class="card">
<h3>Why Browser-Only Encryption?</h3>
<p>API Secure performs all encryption in your browser using the Web Crypto API. This means:</p>
<ul>
<li><strong>Zero server storage:</strong> Your plaintext API key never touches our servers</li>
<li><strong>Zero-knowledge architecture:</strong> We cannot decrypt your data, even if compelled</li>
<li><strong>No account required:</strong> No login, no database of users, no attack surface</li>
<li><strong>Transparent:</strong> Open source code you can audit yourself</li>
</ul>
</div>
<div class="card">
<h3>Threat Model</h3>
<p><strong>Protects against:</strong></p>
<ul>
<li>Passive network sniffing (e.g., compromised Discord)</li>
<li>Server-side breaches (there is no server)</li>
<li>Replay attacks (unique IV + salt per encryption)</li>
<li>Tampering (GCM authentication tag)</li>
</ul>
<p><strong>Does NOT protect against:</strong></p>
<ul>
<li>Compromised sender/recipient devices (keyloggers, malware)</li>
<li>Passphrase interception (shoulder surfing, screenshares)</li>
<li>Clipboard history tools (clear clipboard after copying)</li>
</ul>
</div>
</section>
<section class="section">
<h2 class="section-title"><i data-lucide="unlock"></i> Browser-Based Decryption</h2>
<div class="card">
<h3>How It Works</h3>
<p>The decryption tool at <a href="decrypt.html" style="color: var(--cyan);">/decrypt</a> provides a simple, secure way to decrypt API keys without installing any software.</p>
<ul>
<li><strong>Zero installation:</strong> Works directly in your browser</li>
<li><strong>Client-side only:</strong> Decryption happens locally, passphrase never leaves your device</li>
<li><strong>Same security:</strong> Uses identical AES-256-GCM implementation as encryption</li>
<li><strong>Auto-clear:</strong> Decrypted keys can be copied and automatically cleared from view</li>
</ul>
</div>
<div class="card">
<h3>Step-by-Step Guide</h3>
<div class="steps">
<div class="step">
<div class="step-number">1</div>
<div class="step-content">
<h4>Receive Encrypted Data</h4>
<p>Get both the SECDROP-P:... blob and passphrase from the sender (sent separately for security)</p>
</div>
</div>
<div class="step">
<div class="step-number">2</div>
<div class="step-content">
<h4>Open Decrypt Page</h4>
<p>Navigate to <a href="decrypt.html" style="color: var(--cyan);">apisecure.app/decrypt</a> in any modern browser</p>
</div>
</div>
<div class="step">
<div class="step-number">3</div>
<div class="step-content">
<h4>Paste Encrypted Blob</h4>
<p>Copy and paste the full SECDROP-P:... string into the "Encrypted API Key" field</p>
</div>
</div>
<div class="step">
<div class="step-number">4</div>
<div class="step-content">
<h4>Enter Passphrase</h4>
<p>Type the passphrase exactly as received (case-sensitive, 24 characters)</p>
</div>
</div>
<div class="step">
<div class="step-number">5</div>
<div class="step-content">
<h4>Decrypt & Copy</h4>
<p>Click "Decrypt" to reveal your API key, then use the "Copy" button</p>
</div>
</div>
<div class="step">
<div class="step-number">6</div>
<div class="step-content">
<h4>Clear & Close</h4>
<p>Clear the decrypted key from screen and clipboard when done for security</p>
</div>
</div>
</div>
</div>
<div class="card">
<h3>Security Best Practices</h3>
<ul>
<li><strong>Close the tab:</strong> Don't leave decrypted keys visible on screen</li>
<li><strong>Clear clipboard:</strong> Copy something else after using the key</li>
<li><strong>Private browsing:</strong> Use incognito/private mode if on a shared device</li>
<li><strong>Verify sender:</strong> Only decrypt keys from trusted sources</li>
<li><strong>Check the blob:</strong> SECDROP-P: prefix confirms proper encryption format</li>
</ul>
</div>
<div class="card">
<h3>Browser Compatibility</h3>
<p>The decrypt page requires Web Crypto API support (available in all modern browsers since 2014):</p>
<div class="spec-grid" style="margin-top: 16px;">
<div class="spec-item">
<div class="spec-label">Chrome</div>
<div class="spec-value">37+</div>
</div>
<div class="spec-item">
<div class="spec-label">Firefox</div>
<div class="spec-value">34+</div>
</div>
<div class="spec-item">
<div class="spec-label">Safari</div>
<div class="spec-value">7+</div>
</div>
<div class="spec-item">
<div class="spec-label">Edge</div>
<div class="spec-value">12+</div>
</div>
</div>
</div>
</section>
<section class="section">
<h2 class="section-title"><i data-lucide="cpu"></i> Technical Specifications</h2>
<div class="spec-grid">
<div class="spec-item">
<div class="spec-label">Algorithm</div>
<div class="spec-value">AES-256-GCM</div>
</div>
<div class="spec-item">
<div class="spec-label">Key Derivation</div>
<div class="spec-value">PBKDF2-SHA256</div>
</div>
<div class="spec-item">
<div class="spec-label">Iterations</div>
<div class="spec-value">100,000</div>
</div>
<div class="spec-item">
<div class="spec-label">IV Length</div>
<div class="spec-value">12 bytes (96 bits)</div>
</div>
<div class="spec-item">
<div class="spec-label">Salt Length</div>
<div class="spec-value">16 bytes (128 bits)</div>
</div>
<div class="spec-item">
<div class="spec-label">Auth Tag</div>
<div class="spec-value">16 bytes (GCM)</div>
</div>
</div>
<div class="card" style="margin-top: 24px;">
<h3>Ciphertext Format (Version 2)</h3>
<div class="code-block">
SECDROP-P:base64(
[0] version (1 byte: 0x02)
[1] algorithm (1 byte: 0x01 = PBKDF2)
[2-17] salt (16 bytes)
[18-29] IV (12 bytes)
[30..-17] ciphertext
[-16..] auth tag (16 bytes)
)
</div>
<p><strong>AAD Binding:</strong> Ciphertext includes "api-key-secure-send-v1" as Additional Authenticated Data, preventing format confusion attacks.</p>
<p><strong>Version History:</strong> Version 2 is the current format. Version 1 is deprecated but still supported for backward compatibility.</p>
</div>
</section>
<section class="section">
<h2 class="section-title"><i data-lucide="help-circle"></i> FAQ</h2>
<div class="card">
<div class="faq-item">
<div class="faq-question">
<i data-lucide="shield-check"></i>
Is this really zero-knowledge?
</div>
<div class="faq-answer">
Yes. Encryption happens entirely in your browser. The passphrase is never transmitted to any server. We have no way to decrypt your data.
</div>
</div>
<div class="faq-item">
<div class="faq-question">
<i data-lucide="lock"></i>
Can you decrypt my data?
</div>
<div class="faq-answer">
No. We don't have your passphrase. Without it, AES-256-GCM ciphertext is computationally infeasible to break (would require more energy than exists in the universe).
</div>
</div>
<div class="faq-item">
<div class="faq-question">
<i data-lucide="eye"></i>
Is the code audited?
</div>
<div class="faq-answer">
The code is open source (MIT license) and auditable by anyone. The crypto implementation uses the standard Web Crypto API, which is battle-tested in all major browsers.
</div>
</div>
<div class="faq-item">
<div class="faq-question">
<i data-lucide="alert-triangle"></i>
What if I lose the passphrase?
</div>
<div class="faq-answer">
The data is permanently unrecoverable. There is no "forgot password" feature because we don't store anything. Keep your passphrase safe.
</div>
</div>
<div class="faq-item">
<div class="faq-question">
<i data-lucide="globe"></i>
Browser compatibility?
</div>
<div class="faq-answer">
Requires a modern browser with Web Crypto API support: Chrome 37+, Firefox 34+, Safari 7+, Edge 12+. All major browsers from 2014 onwards.
</div>
</div>
<div class="faq-item">
<div class="faq-question">
<i data-lucide="github"></i>
Why open source the encryption?
</div>
<div class="faq-answer">
Kerckhoffs's Principle: Security should not rely on obscurity. Open source crypto is more secure because it can be audited by experts. The security comes from the key (passphrase), not the secrecy of the algorithm.
</div>
</div>
</div>
</section>
<section class="section">
<h2 class="section-title"><i data-lucide="newspaper"></i> Learn More</h2>
<div class="card">
<h3>Blog & Updates</h3>
<p>Stay up to date with the latest security insights, feature announcements, and technical deep dives:</p>
<a href="blog/" class="btn" style="margin-top: 16px;">
<i data-lucide="book-open"></i>
Visit Blog
</a>
</div>
</section>
<section class="section" style="text-align: center;">
<h2 class="section-title" style="justify-content: center;">
<i data-lucide="rocket"></i>
Ready to encrypt?
</h2>
<a href="encrypt.html" class="btn" style="font-size: 1.1rem; padding: 16px 32px;">
<i data-lucide="lock"></i>
Start Encrypting
</a>
</section>
</div>
<footer class="footer">
<div class="footer-text">
© 2026 API Secure. Open source under MIT License.
</div>
</footer>
<script>
lucide.createIcons();
const canvas = document.getElementById('particleCanvas');
const ctx = canvas.getContext('2d');
let particles = [];
function resizeCanvas() {
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
}
class Particle {
constructor() {
this.x = Math.random() * canvas.width;
this.y = Math.random() * canvas.height;
this.vx = (Math.random() - 0.5) * 0.3;
this.vy = (Math.random() - 0.5) * 0.3;
this.radius = Math.random() * 1.5 + 0.5;
}
update() {
this.x += this.vx;
this.y += this.vy;
if (this.x < 0 || this.x > canvas.width) this.vx *= -1;
if (this.y < 0 || this.y > canvas.height) this.vy *= -1;
}
draw() {
ctx.beginPath();
ctx.arc(this.x, this.y, this.radius, 0, Math.PI * 2);
ctx.fillStyle = 'rgba(0, 212, 255, 0.4)';
ctx.fill();
}
}
function initParticles() {
particles = [];
const count = Math.min(50, Math.floor((canvas.width * canvas.height) / 25000));
for (let i = 0; i < count; i++) particles.push(new Particle());
}
function animate() {
ctx.clearRect(0, 0, canvas.width, canvas.height);
particles.forEach(p => { p.update(); p.draw(); });
requestAnimationFrame(animate);
}
resizeCanvas();
initParticles();
animate();
window.addEventListener('resize', () => { resizeCanvas(); initParticles(); });
</script>
</body>
</html>