Spaces:
Running
Running
KeyGuard i18n(KO/EN/ZH) + browser auto-detect + expanded explanation
Browse files- README.md +28 -4
- index.html +486 -17
- samples.js +1 -0
README.md
CHANGED
|
@@ -1,10 +1,34 @@
|
|
| 1 |
---
|
| 2 |
title: KeyGuard
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
colorTo: blue
|
| 6 |
sdk: static
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
title: KeyGuard
|
| 3 |
+
emoji: 🔐
|
| 4 |
+
colorFrom: indigo
|
| 5 |
colorTo: blue
|
| 6 |
sdk: static
|
| 7 |
+
app_file: index.html
|
| 8 |
+
pinned: true
|
| 9 |
+
license: mit
|
| 10 |
+
short_description: In-browser RSA public-key self-check. KO/EN/ZH.
|
| 11 |
---
|
| 12 |
|
| 13 |
+
# 🔐 KeyGuard — RSA Public-Key Self-Check / 공개키 자가진단
|
| 14 |
+
|
| 15 |
+
> **EN:** Is your device's crypto key a factory defect? Check in 30 seconds — 100% in your browser, keys never leave your device.
|
| 16 |
+
> **KO:** 내 장비 암호키, 혹시 불량품? 30초 자가진단 — 100% 브라우저 안에서, 키는 전송되지 않습니다.
|
| 17 |
+
> **中:** 你设备的加密密钥会不会是次品?30 秒自检 — 100% 在浏览器内,密钥绝不外传。
|
| 18 |
+
|
| 19 |
+
Auto-detects browser language and offers **Korean / English / Chinese** buttons.
|
| 20 |
+
|
| 21 |
+
## What it checks / 무엇을 검사하나 / 检测什么
|
| 22 |
+
| | |
|
| 23 |
+
|---|---|
|
| 24 |
+
| 🔗 **Shared prime (batch-GCD)** | Devices reusing a prime → both private keys recoverable |
|
| 25 |
+
| 🤏 **Close primes (Fermat)** | Primes too close → factors instantly even at 2048-bit |
|
| 26 |
+
| 🧬 **ROCA (CVE-2017-15361)** | Vulnerable key pattern from certain faulty chips |
|
| 27 |
+
| 📏 **Short / weak keys** | ≤768-bit factorable, <2048 replace, bad exponent |
|
| 28 |
+
|
| 29 |
+
## Privacy / 개인정보
|
| 30 |
+
- 100% client-side. No key is stored or sent to any server. Recovered private keys are never shown — only the fact that a key is recoverable.
|
| 31 |
+
- Use only on devices you own or are authorized to test. Follows Responsible Disclosure.
|
| 32 |
+
|
| 33 |
+
## Verified / 검증
|
| 34 |
+
- 10/10 planted weak keys detected (0 false positives); validated at scale on 350K+ real public keys from Certificate Transparency logs.
|
index.html
CHANGED
|
@@ -1,19 +1,488 @@
|
|
| 1 |
<!doctype html>
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
</html>
|
|
|
|
| 1 |
<!doctype html>
|
| 2 |
+
<html lang="ko" data-theme="dark">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
+
<title>KeyGuard</title>
|
| 7 |
+
<meta name="description" content="Check whether your server/device RSA public keys are 'weak keys' — 100% in your browser. / 서버·장비 공개키가 '불량 키'인지 브라우저 안에서 자가진단." />
|
| 8 |
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 9 |
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 10 |
+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
|
| 11 |
+
<style>
|
| 12 |
+
:root{
|
| 13 |
+
--bg:#0a0b14; --bg2:#0d0f1c; --panel:rgba(255,255,255,.04); --panel-br:rgba(255,255,255,.09);
|
| 14 |
+
--ink:#eef1ff; --muted:#9aa3c7; --faint:#6a7196;
|
| 15 |
+
--accent:#7c6cff; --accent2:#22d3ee; --accent3:#f472b6;
|
| 16 |
+
--ok:#34d399; --warn:#fbbf24; --bad:#fb5a6a;
|
| 17 |
+
--mono:'JetBrains Mono',ui-monospace,monospace;
|
| 18 |
+
--grad:linear-gradient(120deg,#7c6cff,#22d3ee);
|
| 19 |
+
--radius:20px;
|
| 20 |
+
}
|
| 21 |
+
:root:not([data-theme="dark"]){
|
| 22 |
+
--bg:#f6f7fb; --bg2:#eef1f8; --panel:rgba(14,16,32,.03); --panel-br:rgba(14,16,32,.10);
|
| 23 |
+
--ink:#121634; --muted:#4d5680; --faint:#767ea6;
|
| 24 |
+
}
|
| 25 |
+
*{box-sizing:border-box}
|
| 26 |
+
html,body{margin:0;padding:0}
|
| 27 |
+
body{font-family:Inter,system-ui,"Apple SD Gothic Neo","Noto Sans KR","Noto Sans SC",sans-serif;background:var(--bg);color:var(--ink);line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden}
|
| 28 |
+
.bgfx{position:fixed;inset:0;z-index:-1;overflow:hidden}
|
| 29 |
+
.orb{position:absolute;border-radius:50%;filter:blur(90px);opacity:.5;animation:float 18s ease-in-out infinite}
|
| 30 |
+
.orb.a{width:520px;height:520px;background:#7c6cff;top:-160px;left:-120px}
|
| 31 |
+
.orb.b{width:460px;height:460px;background:#22d3ee;top:20%;right:-140px;animation-delay:-6s}
|
| 32 |
+
.orb.c{width:420px;height:420px;background:#f472b6;bottom:-160px;left:30%;animation-delay:-11s;opacity:.35}
|
| 33 |
+
@keyframes float{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(0,-40px) scale(1.08)}}
|
| 34 |
+
.grid-ovl{position:absolute;inset:0;background-image:linear-gradient(var(--panel-br) 1px,transparent 1px),linear-gradient(90deg,var(--panel-br) 1px,transparent 1px);background-size:56px 56px;opacity:.25;mask-image:radial-gradient(circle at 50% 30%,#000,transparent 72%)}
|
| 35 |
+
.wrap{max-width:980px;margin:0 auto;padding:0 20px}
|
| 36 |
+
nav{display:flex;align-items:center;justify-content:space-between;padding:22px 0;gap:12px;flex-wrap:wrap}
|
| 37 |
+
.brand{display:flex;align-items:center;gap:11px;font-family:'Space Grotesk';font-weight:700;font-size:19px;letter-spacing:-.01em}
|
| 38 |
+
.logo{width:34px;height:34px;border-radius:10px;background:var(--grad);display:grid;place-items:center;box-shadow:0 8px 26px rgba(124,108,255,.45)}
|
| 39 |
+
.logo svg{width:19px;height:19px}
|
| 40 |
+
.navbtns{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
|
| 41 |
+
.langsw{display:flex;border:1px solid var(--panel-br);border-radius:999px;overflow:hidden;background:var(--panel)}
|
| 42 |
+
.langsw button{border:none;background:transparent;color:var(--muted);font-size:12.5px;padding:7px 12px;cursor:pointer;font-family:inherit;transition:.15s}
|
| 43 |
+
.langsw button.on{background:var(--grad);color:#0a0b14;font-weight:700}
|
| 44 |
+
.chip{font-size:12.5px;color:var(--muted);border:1px solid var(--panel-br);padding:7px 13px;border-radius:999px;background:var(--panel);cursor:pointer;transition:.2s}
|
| 45 |
+
.chip:hover{color:var(--ink);border-color:var(--accent)}
|
| 46 |
+
header.hero{padding:34px 0 18px;text-align:center}
|
| 47 |
+
.tagpill{display:inline-flex;gap:8px;align-items:center;font-size:12.5px;color:var(--muted);border:1px solid var(--panel-br);background:var(--panel);padding:7px 15px;border-radius:999px;margin-bottom:20px}
|
| 48 |
+
.dot{width:7px;height:7px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 4px rgba(52,211,153,.18)}
|
| 49 |
+
h1{font-family:'Space Grotesk';font-size:clamp(32px,5.6vw,54px);line-height:1.05;letter-spacing:-.03em;margin:0 0 16px;font-weight:700}
|
| 50 |
+
h1 .g{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
|
| 51 |
+
.lead{font-size:clamp(16px,2.3vw,18px);color:var(--muted);max-width:640px;margin:0 auto 10px}
|
| 52 |
+
.sub{font-size:14px;color:var(--faint);max-width:600px;margin:14px auto 0}
|
| 53 |
+
.card{background:var(--panel);border:1px solid var(--panel-br);border-radius:var(--radius);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
|
| 54 |
+
/* about */
|
| 55 |
+
.about{margin:26px 0 8px;padding:24px}
|
| 56 |
+
.about h2{margin:0 0 12px;font-family:'Space Grotesk';font-size:20px}
|
| 57 |
+
.about p{margin:0 0 10px;font-size:14.5px;color:var(--muted)}
|
| 58 |
+
.about .kparts{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:16px}
|
| 59 |
+
.kpart{padding:14px;border-radius:12px;border:1px solid var(--panel-br);background:rgba(124,108,255,.04)}
|
| 60 |
+
.kpart .h{font-weight:600;font-size:13.5px;margin-bottom:4px}
|
| 61 |
+
.kpart .d{font-size:12.5px;color:var(--faint)}
|
| 62 |
+
.checker{margin:26px 0 10px;padding:26px}
|
| 63 |
+
.checker h2{margin:0 0 4px;font-size:18px;font-family:'Space Grotesk'}
|
| 64 |
+
.checker p.hint{margin:0 0 16px;font-size:13.5px;color:var(--faint)}
|
| 65 |
+
textarea{width:100%;min-height:150px;resize:vertical;background:rgba(0,0,0,.22);border:1px solid var(--panel-br);border-radius:14px;color:var(--ink);font-family:var(--mono);font-size:12.5px;padding:15px;outline:none;transition:.2s}
|
| 66 |
+
:root:not([data-theme="dark"]) textarea{background:#fff}
|
| 67 |
+
textarea:focus{border-color:var(--accent);box-shadow:0 0 0 4px rgba(124,108,255,.15)}
|
| 68 |
+
.samplebar{margin:4px 0 16px;padding:14px 16px;border-radius:14px;border:1px dashed var(--panel-br);background:rgba(124,108,255,.05)}
|
| 69 |
+
.sbl{display:block;font-size:12.5px;color:var(--accent2);font-weight:700;margin-bottom:10px}
|
| 70 |
+
.schips{display:flex;gap:9px;flex-wrap:wrap}
|
| 71 |
+
.schip{display:inline-flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;border:1px solid var(--panel-br);background:var(--panel);border-radius:12px;padding:10px 13px;cursor:pointer;transition:.18s;max-width:230px}
|
| 72 |
+
.schip:hover{transform:translateY(-2px);border-color:var(--accent);box-shadow:0 8px 22px rgba(124,108,255,.25)}
|
| 73 |
+
.schip .st{font-size:13px;font-weight:600;color:var(--ink)}
|
| 74 |
+
.schip .sd{font-size:11px;color:var(--faint);line-height:1.35}
|
| 75 |
+
.schip.mix{background:var(--grad);border:none}
|
| 76 |
+
.schip.mix .st{color:#0a0b14}.schip.mix .sd{color:rgba(10,11,20,.72)}
|
| 77 |
+
.row{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:14px}
|
| 78 |
+
button.run{flex:1;min-width:200px;border:none;cursor:pointer;font-weight:700;font-size:15px;color:#0a0b14;background:var(--grad);padding:15px 20px;border-radius:14px;transition:.2s;box-shadow:0 10px 30px rgba(124,108,255,.35)}
|
| 79 |
+
button.run:hover{transform:translateY(-2px)}
|
| 80 |
+
.secbtn{border:1px solid var(--panel-br);background:var(--panel);color:var(--muted);padding:15px 18px;border-radius:14px;cursor:pointer;font-size:13.5px;transition:.2s}
|
| 81 |
+
.secbtn:hover{color:var(--ink);border-color:var(--accent2)}
|
| 82 |
+
label.ck{display:flex;gap:9px;align-items:flex-start;font-size:12.5px;color:var(--muted);margin-top:14px;cursor:pointer}
|
| 83 |
+
label.ck input{margin-top:3px;accent-color:var(--accent)}
|
| 84 |
+
#results{margin-top:18px;display:none}
|
| 85 |
+
.summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}
|
| 86 |
+
.stat{padding:16px;text-align:center;border-radius:16px}
|
| 87 |
+
.stat .n{font-family:'Space Grotesk';font-size:28px;font-weight:700;line-height:1}
|
| 88 |
+
.stat .l{font-size:11.5px;color:var(--faint);margin-top:6px}
|
| 89 |
+
.stat.ok .n{color:var(--ok)}.stat.warn .n{color:var(--warn)}.stat.bad .n{color:var(--bad)}.stat.tot .n{color:var(--ink)}
|
| 90 |
+
.res{display:flex;gap:13px;align-items:flex-start;padding:15px;border-radius:14px;margin-bottom:9px;border:1px solid var(--panel-br)}
|
| 91 |
+
.res .ic{flex-shrink:0;width:30px;height:30px;border-radius:9px;display:grid;place-items:center;font-size:15px}
|
| 92 |
+
.res.safe .ic{background:rgba(52,211,153,.15)}.res.weak .ic{background:rgba(251,191,36,.15)}.res.critical .ic{background:rgba(251,90,106,.15)}
|
| 93 |
+
.res .body{flex:1;min-width:0}
|
| 94 |
+
.res .tt{font-weight:600;font-size:14px}
|
| 95 |
+
.res .ds{font-size:12.5px;color:var(--muted);word-break:break-all}
|
| 96 |
+
.res .badge{font-size:10.5px;font-weight:700;padding:3px 9px;border-radius:999px;flex-shrink:0}
|
| 97 |
+
.res.safe .badge{background:rgba(52,211,153,.15);color:var(--ok)}
|
| 98 |
+
.res.weak .badge{background:rgba(251,191,36,.15);color:var(--warn)}
|
| 99 |
+
.res.critical .badge{background:rgba(251,90,106,.15);color:var(--bad)}
|
| 100 |
+
.shared{margin-top:14px;padding:15px;border-radius:14px;border:1px solid var(--bad);background:rgba(251,90,106,.07)}
|
| 101 |
+
.shared h3{margin:0 0 8px;font-size:13.5px;color:var(--bad)}
|
| 102 |
+
section.block{margin:52px 0}
|
| 103 |
+
.eyebrow{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--accent2);font-weight:700;margin-bottom:12px}
|
| 104 |
+
.block h2{font-family:'Space Grotesk';font-size:clamp(23px,4vw,32px);letter-spacing:-.02em;margin:0 0 10px}
|
| 105 |
+
.cards3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:22px}
|
| 106 |
+
.mini{padding:22px}
|
| 107 |
+
.mini .e{font-size:26px;margin-bottom:10px}
|
| 108 |
+
.mini h4{margin:0 0 6px;font-size:15px;font-family:'Space Grotesk'}
|
| 109 |
+
.mini p{margin:0;font-size:13.5px;color:var(--muted)}
|
| 110 |
+
.qa{padding:20px 22px;margin-bottom:11px}
|
| 111 |
+
.qa .q{font-weight:600;font-size:15px;margin-bottom:5px}
|
| 112 |
+
.qa .a{font-size:14px;color:var(--muted)}
|
| 113 |
+
.proof{display:flex;gap:16px;flex-wrap:wrap;margin-top:20px}
|
| 114 |
+
.pf{flex:1;min-width:150px;padding:20px;text-align:center}
|
| 115 |
+
.pf .n{font-family:'Space Grotesk';font-size:30px;font-weight:700;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
|
| 116 |
+
.pf .l{font-size:12.5px;color:var(--faint);margin-top:6px}
|
| 117 |
+
.note{font-size:12.5px;color:var(--faint);border-left:2px solid var(--accent);padding:4px 0 4px 14px;margin-top:16px}
|
| 118 |
+
.warnbox{padding:16px 18px;border-radius:14px;border:1px solid var(--warn);background:rgba(251,191,36,.06);font-size:13px;color:var(--muted);margin-top:16px}
|
| 119 |
+
footer{margin:56px 0 40px;padding-top:26px;border-top:1px solid var(--panel-br);font-size:12.5px;color:var(--faint);text-align:center}
|
| 120 |
+
@media(max-width:720px){.summary{grid-template-columns:repeat(2,1fr)}.cards3{grid-template-columns:1fr}.about .kparts{grid-template-columns:1fr}.schip{max-width:none;flex:1 1 140px}}
|
| 121 |
+
</style>
|
| 122 |
+
</head>
|
| 123 |
+
<body>
|
| 124 |
+
<div class="bgfx"><div class="orb a"></div><div class="orb b"></div><div class="orb c"></div><div class="grid-ovl"></div></div>
|
| 125 |
+
<div class="wrap">
|
| 126 |
+
<nav>
|
| 127 |
+
<div class="brand">
|
| 128 |
+
<span class="logo"><svg viewBox="0 0 24 24" fill="none"><path d="M12 2l7 3v6c0 4.5-3 8.2-7 9-4-0.8-7-4.5-7-9V5l7-3z" stroke="#0a0b14" stroke-width="2" stroke-linejoin="round"/><path d="M9 12l2 2 4-4" stroke="#0a0b14" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></span>
|
| 129 |
+
KeyGuard
|
| 130 |
+
</div>
|
| 131 |
+
<div class="navbtns">
|
| 132 |
+
<div class="langsw" id="langsw">
|
| 133 |
+
<button data-lang="ko">한국어</button><button data-lang="en">EN</button><button data-lang="zh">中文</button>
|
| 134 |
+
</div>
|
| 135 |
+
<span class="chip" id="themeToggle">◐</span>
|
| 136 |
+
</div>
|
| 137 |
+
</nav>
|
| 138 |
+
|
| 139 |
+
<header class="hero">
|
| 140 |
+
<div class="tagpill"><span class="dot"></span> <span data-i18n="tag"></span></div>
|
| 141 |
+
<h1><span data-i18n="h1a"></span><br><span class="g" data-i18n="h1b"></span></h1>
|
| 142 |
+
<p class="lead" data-i18n="lead"></p>
|
| 143 |
+
<p class="sub" data-i18n="sub"></p>
|
| 144 |
+
</header>
|
| 145 |
+
|
| 146 |
+
<!-- ABOUT / 설명 -->
|
| 147 |
+
<div class="card about">
|
| 148 |
+
<h2 data-i18n="about_h"></h2>
|
| 149 |
+
<p data-i18n="about_p1"></p>
|
| 150 |
+
<p data-i18n="about_p2"></p>
|
| 151 |
+
<div class="kparts">
|
| 152 |
+
<div class="kpart"><div class="h" data-i18n="about_k1h"></div><div class="d" data-i18n="about_k1d"></div></div>
|
| 153 |
+
<div class="kpart"><div class="h" data-i18n="about_k2h"></div><div class="d" data-i18n="about_k2d"></div></div>
|
| 154 |
+
<div class="kpart"><div class="h" data-i18n="about_k3h"></div><div class="d" data-i18n="about_k3d"></div></div>
|
| 155 |
+
<div class="kpart"><div class="h" data-i18n="about_k4h"></div><div class="d" data-i18n="about_k4d"></div></div>
|
| 156 |
+
</div>
|
| 157 |
+
</div>
|
| 158 |
+
|
| 159 |
+
<!-- CHECKER -->
|
| 160 |
+
<div class="card checker" id="checker">
|
| 161 |
+
<h2 data-i18n="chk_h"></h2>
|
| 162 |
+
<p class="hint" data-i18n="chk_hint"></p>
|
| 163 |
+
<div class="samplebar">
|
| 164 |
+
<span class="sbl" data-i18n="chk_sample"></span>
|
| 165 |
+
<div class="schips" id="schips"></div>
|
| 166 |
+
</div>
|
| 167 |
+
<textarea id="keyin" data-i18n-ph="chk_ph"></textarea>
|
| 168 |
+
<label class="ck"><input type="checkbox" id="consent"><span data-i18n="chk_consent"></span></label>
|
| 169 |
+
<div class="row">
|
| 170 |
+
<button class="run" id="runbtn" data-i18n="chk_run"></button>
|
| 171 |
+
<button class="secbtn" id="clearbtn" data-i18n="chk_clear"></button>
|
| 172 |
+
</div>
|
| 173 |
+
<div id="results"><div class="summary" id="summary"></div><div id="reslist"></div><div id="sharedbox"></div></div>
|
| 174 |
+
</div>
|
| 175 |
+
<p class="note" data-i18n="chk_note"></p>
|
| 176 |
+
|
| 177 |
+
<section class="block">
|
| 178 |
+
<div class="eyebrow" data-i18n="how_eye"></div>
|
| 179 |
+
<h2 data-i18n="how_h"></h2>
|
| 180 |
+
<div class="cards3">
|
| 181 |
+
<div class="card mini"><div class="e">📋</div><h4 data-i18n="how1h"></h4><p data-i18n="how1d"></p></div>
|
| 182 |
+
<div class="card mini"><div class="e">⚡</div><h4 data-i18n="how2h"></h4><p data-i18n="how2d"></p></div>
|
| 183 |
+
<div class="card mini"><div class="e">🛡️</div><h4 data-i18n="how3h"></h4><p data-i18n="how3d"></p></div>
|
| 184 |
+
</div>
|
| 185 |
+
</section>
|
| 186 |
+
|
| 187 |
+
<section class="block">
|
| 188 |
+
<div class="eyebrow" data-i18n="what_eye"></div>
|
| 189 |
+
<h2 data-i18n="what_h"></h2>
|
| 190 |
+
<div class="cards3">
|
| 191 |
+
<div class="card mini"><div class="e">📏</div><h4 data-i18n="w1h"></h4><p data-i18n="w1d"></p></div>
|
| 192 |
+
<div class="card mini"><div class="e">🤏</div><h4 data-i18n="w2h"></h4><p data-i18n="w2d"></p></div>
|
| 193 |
+
<div class="card mini"><div class="e">🔗</div><h4 data-i18n="w3h"></h4><p data-i18n="w3d"></p></div>
|
| 194 |
+
<div class="card mini"><div class="e">🧬</div><h4 data-i18n="w4h"></h4><p data-i18n="w4d"></p></div>
|
| 195 |
+
</div>
|
| 196 |
+
</section>
|
| 197 |
+
|
| 198 |
+
<section class="block">
|
| 199 |
+
<div class="eyebrow" data-i18n="proof_eye"></div>
|
| 200 |
+
<h2 data-i18n="proof_h"></h2>
|
| 201 |
+
<p class="lead" style="margin-left:0;text-align:left" data-i18n="proof_lead"></p>
|
| 202 |
+
<div class="proof">
|
| 203 |
+
<div class="card pf"><div class="n">10/10</div><div class="l" data-i18n="proof_s1"></div></div>
|
| 204 |
+
<div class="card pf"><div class="n">353K</div><div class="l" data-i18n="proof_s2"></div></div>
|
| 205 |
+
<div class="card pf"><div class="n">0</div><div class="l" data-i18n="proof_s3"></div></div>
|
| 206 |
+
</div>
|
| 207 |
+
<div class="note" data-i18n="proof_note"></div>
|
| 208 |
+
</section>
|
| 209 |
+
|
| 210 |
+
<section class="block">
|
| 211 |
+
<div class="eyebrow" data-i18n="faq_eye"></div>
|
| 212 |
+
<h2 data-i18n="faq_h"></h2>
|
| 213 |
+
<div class="card qa"><div class="q" data-i18n="faq1q"></div><div class="a" data-i18n="faq1a"></div></div>
|
| 214 |
+
<div class="card qa"><div class="q" data-i18n="faq2q"></div><div class="a" data-i18n="faq2a"></div></div>
|
| 215 |
+
<div class="card qa"><div class="q" data-i18n="faq3q"></div><div class="a" data-i18n="faq3a"></div></div>
|
| 216 |
+
<div class="card qa"><div class="q" data-i18n="faq4q"></div><div class="a" data-i18n="faq4a"></div></div>
|
| 217 |
+
<div class="warnbox" data-i18n="faq_warn"></div>
|
| 218 |
+
</section>
|
| 219 |
+
|
| 220 |
+
<footer><span data-i18n="foot1"></span><br><span data-i18n="foot2"></span></footer>
|
| 221 |
+
</div>
|
| 222 |
+
|
| 223 |
+
<script src="samples.js"></script>
|
| 224 |
+
<script>
|
| 225 |
+
/* ================= i18n ================= */
|
| 226 |
+
const I18N={
|
| 227 |
+
ko:{
|
| 228 |
+
tag:"100% 브라우저 안에서 검사 · 키는 서버로 전송되지 않습니다",
|
| 229 |
+
h1a:"내 장비 암호키,", h1b:"혹시 불량품 아닐까?",
|
| 230 |
+
lead:"공장에서 실수로 여러 장비에 똑같은 비밀 소수를 넣어 출고하면, 누군가 그걸 찾는 순간 그 장비들은 전부 열립니다. KeyGuard는 당신의 공개키가 그런 불량 키인지 수학으로 30초 만에 검사합니다.",
|
| 231 |
+
sub:"개인키 말고 공개키만 넣으세요. 공개키는 원래 공개되는 정보라 안전합니다.",
|
| 232 |
+
about_h:"이게 무엇인가요?",
|
| 233 |
+
about_p1:"RSA 암호키는 '큰 소수 두 개를 곱한 자물쇠'입니다. 두 소수를 알아내면 자물쇠가 열리는데, 보통은 알아낼 방법이 없어 안전합니다. 문제는 난수(무작위)가 빈약한 싸구려 장비들이 부팅 직후 키를 만들 때 생깁니다.",
|
| 234 |
+
about_p2:"이때 서로 다른 기기가 우연히 같은 소수를 쓰거나, 두 소수가 너무 가깝게 뽑히면, 공개키만으로 개인키를 되찾을 수 있습니다. KeyGuard는 바로 이런 '구조적 결함 키'를 찾아냅니다 — 암호가 약해서가 아니라, 일부 구현이 엉망이라서 생기는 문제입니다.",
|
| 235 |
+
about_k1h:"🔗 소수 공유 (batch-GCD)", about_k1d:"여러 장비가 같은 소수 사용 → 최대공약수 한 번에 양쪽 개인키 복원",
|
| 236 |
+
about_k2h:"🤏 가까운 소수 (Fermat)", about_k2d:"두 소수가 너무 가까우면 2048비트라도 즉시 분해",
|
| 237 |
+
about_k3h:"🧬 ROCA (CVE-2017-15361)", about_k3d:"특정 결함칩이 만든 취약 패턴 키 의심 탐지",
|
| 238 |
+
about_k4h:"📏 짧은/약한 키", about_k4d:"768비트 이하(분해 가능)·2048 미만(교체 권장)·비정상 지수",
|
| 239 |
+
chk_h:"🔎 공개키 자가진단",
|
| 240 |
+
chk_hint:"RSA 공개키를 한 줄에 하나씩 넣으세요. 형식: PEM(-----BEGIN PUBLIC KEY-----), 16진수 모듈러스, 10진수 N, 또는 N:e. 여러 장비 키를 함께 넣으면 서로 소수를 공유하는지도 검사합니다.",
|
| 241 |
+
chk_sample:"⚡ 입력이 귀찮다면? 샘플 유형을 눌러 바로 결과를 보세요",
|
| 242 |
+
chk_ph:"예)\n-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqh...\n-----END PUBLIC KEY-----\n\n또는 16진수 모듈러스:\nC897A647627FAEBB...\n\n또는 N:e 형식:\n2533...9077 : 65537",
|
| 243 |
+
chk_consent:"검사하려는 공개키는 내가 소유했거나 점검 위임을 받은 장비의 것입니다. 타인의 장비·키를 무단으로 검사하지 않습니다.",
|
| 244 |
+
chk_run:"자가진단 실행", chk_clear:"지우기",
|
| 245 |
+
chk_note:"모든 검사는 당신의 브라우저 안에서만 실행됩니다. 어떤 키도 서버로 저장·전송되지 않으며('지우기'로 입력을 즉시 비울 수 있음), 뚫리는 키라도 복원된 개인키 값은 절대 표시하지 않고 '복원 가능' 사실만 알려줍니다.",
|
| 246 |
+
how_eye:"어떻게 쓰나요", how_h:"3단계면 끝",
|
| 247 |
+
how1h:"1. 공개키 붙여넣기", how1d:"서버·공유기·IoT 장비의 공개키(인증서/SSH 공개키)를 넣습니다. 개인키는 넣지 마세요.",
|
| 248 |
+
how2h:"2. 실행", how2d:"브라우저가 즉시 수학 검사를 돌립니다. 인터넷 전송 없음 — 전부 당신 기기 안에서.",
|
| 249 |
+
how3h:"3. 결과 확인", how3d:"안전/주의/위험으로 한눈에. 위험이면 왜 위험한지 알려줍니다.",
|
| 250 |
+
what_eye:"무엇을 검사하나", what_h:"4가지 치명적 결함",
|
| 251 |
+
w1h:"너무 짧은 키", w1d:"768비트 이하는 오늘날 분해 가능, 2048 미만은 교체 권장.",
|
| 252 |
+
w2h:"가까운 소수 (Fermat)", w2d:"두 소수가 너무 가까우면 2048비트라도 즉시 뚫립니다.",
|
| 253 |
+
w3h:"소수 공유 (batch-GCD)", w3d:"여러 장비가 같은 소수를 쓰면 최대공약수 한 번에 둘 다 열립니다.",
|
| 254 |
+
w4h:"ROCA 결함칩", w4d:"특정 칩(CVE-2017-15361)이 만든 취약 패턴 키를 의심 탐지합니다.",
|
| 255 |
+
proof_eye:"검증됨", proof_h:"실제 대규모 공개키로 검증 완료",
|
| 256 |
+
proof_lead:"합성 취약 키를 정확히 탐지하고, 실제 인증서 투명성(CT) 로그의 공개키 35만 개로 대규모 동작을 확인했습니다.",
|
| 257 |
+
proof_s1:"심은 취약 키 탐지 정확도 (오탐 0)", proof_s2:"실제 CT 공개키 분석 (스파크)", proof_s3:"서버로 전송��� 키 (전부 클라이언트)",
|
| 258 |
+
proof_note:"참고: 공개 CT 로그의 웹 인증서는 대체로 잘 생성되어 취약 키가 드뭅니다. 취약 키는 주로 임베디드·IoT의 자가서명 인증서에 분포 — 그래서 '내 장비를 직접 검사'하는 이 도구가 의미가 있습니다.",
|
| 259 |
+
faq_eye:"자주 묻는 질문", faq_h:"궁금한 것들",
|
| 260 |
+
faq1q:"제 개인키가 유출되나요?", faq1a:"아니요. 공개키만 넣고, 그마저도 브라우저 밖으로 나가지 않습니다.",
|
| 261 |
+
faq2q:"왜 공개키만으로 뚫리는 걸 알 수 있죠?", faq2a:"공개키에는 두 소수의 '곱'이 들어 있습니다. 소수가 가깝거나 공유되면 그 곱만으로 소수를 되찾을 수 있습니다.",
|
| 262 |
+
faq3q:"여러 장비를 한꺼번에 넣어도 되나요?", faq3a:"네, 권장합니다. 장비들끼리 소수를 공유하는지는 여러 키를 함께 넣어야 검사됩니다.",
|
| 263 |
+
faq4q:"안전으로 나오면 100% 안심인가요?", faq4a:"이 도구가 검사하는 4가지 결함이 없다는 뜻입니다. 암호의 다른 측면은 별도 점검이 필요합니다.",
|
| 264 |
+
faq_warn:"⚠️ 이 도구는 본인 소유 또는 점검 위임을 받은 장비의 공개키에만 사용하세요. 타인의 장비·시스템을 무단으로 검사·침투하는 것은 법으로 금지되어 있습니다.",
|
| 265 |
+
foot1:"KeyGuard · 공개키 자가진단 · 모든 검사는 브라우저 안에서만 실행됩니다",
|
| 266 |
+
foot2:"교육 및 본인 자산 점검용 · 책임 있는 보안 점검(Responsible Disclosure) 원칙 준수",
|
| 267 |
+
b_safe:"안전", b_weak:"주의", b_bad:"위험",
|
| 268 |
+
s_tot:"검사한 키", s_safe:"안전", s_warn:"주의", s_bad:"위험",
|
| 269 |
+
f_nodefect:"알려진 결함 없음",
|
| 270 |
+
f_size_c:(b)=>`키 길이 ${b}비트 — 현재 분해 가능 범위`,
|
| 271 |
+
f_size_w:(b)=>`키 길이 ${b}비트 — 2048 미만, 교체 권장`,
|
| 272 |
+
f_exp:(e)=>`공개지수 e=${e} 비정상`,
|
| 273 |
+
f_fermat:(it)=>`가까운 소수(Fermat) — 개인키 복원 가능 (반복 ${it}회)`,
|
| 274 |
+
f_roca:"ROCA 지문 의심 — 정밀검사 필요 (CVE-2017-15361)",
|
| 275 |
+
f_shared:(w)=>`🔗 소수 공유 (${w}) — 개인키 복원 가능`,
|
| 276 |
+
key_n:(i,b)=>`키 #${i} · ${b}bit`,
|
| 277 |
+
shared_title:"🔗 소수 공유 발견 — 아래 키들은 서로의 개인키를 복원할 수 있습니다",
|
| 278 |
+
shared_row:(a,b,bits)=>`${bits}비트 소수 공유 — 양쪽 모두 복원 가능 (개인키 값은 표시하지 않음)`,
|
| 279 |
+
shared_pair:(a,b)=>`키 #${a} ↔ 키 #${b}`,
|
| 280 |
+
noshare_t:"소수 공유 없음", noshare_d:(n)=>`입력한 ${n}개 키는 서로 소수를 공유하지 않습니다 (batch-GCD 검사 완료).`,
|
| 281 |
+
single_t:"소수 공유 검사는 2개 이상 키가 필요합니다", single_d:"여러 장비의 공개키를 함께 넣으면 서로 소수를 공유하는지 검사합니다.",
|
| 282 |
+
al_consent:"본인 소유/위임 장비 확인에 체크해 주세요.", al_nokey:"유효한 RSA 공개키를 찾지 못했습니다. 형식을 확인해 주세요.",
|
| 283 |
+
busy:"검사 중…",
|
| 284 |
+
sample:{fermat:["🤏 가까운 소수","두 소수가 너무 가까운 1024비트 키 — Fermat로 즉시 분해"],shared:["🔗 소수 공유 (2대)","두 장비가 같은 소수 사용 — batch-GCD로 양쪽 다 뚫림"],short:["📏 너무 짧은 키","512비트 — 현재 분해 가능 범위"],bade:["⚠️ 비정상 지수","공개지수 e=2 (잘못된 설정)"],safe:["✓ 정상 키","잘 생성된 2048비트 실제 인증서 키 — 안전"],mix:["🎯 전부 섞기","위 모든 유형을 한 번에 — 종합 리포트"]}
|
| 285 |
+
},
|
| 286 |
+
en:{
|
| 287 |
+
tag:"100% in-browser · keys are never sent to any server",
|
| 288 |
+
h1a:"Your device's crypto key —", h1b:"is it a factory defect?",
|
| 289 |
+
lead:"If a factory mistakenly ships many devices with the same secret prime, anyone who finds it can open them all. KeyGuard checks, with math in 30 seconds, whether your public key is one of those defective keys.",
|
| 290 |
+
sub:"Paste the PUBLIC key only, never the private key. Public keys are meant to be public, so this is safe.",
|
| 291 |
+
about_h:"What is this?",
|
| 292 |
+
about_p1:"An RSA key is a 'lock made by multiplying two large primes'. Knowing the two primes opens the lock — normally there's no way to find them, so it's safe. The problem starts when cheap devices with weak randomness generate keys right after boot.",
|
| 293 |
+
about_p2:"When two different devices happen to use the same prime, or the two primes are picked too close together, the private key can be recovered from the public key alone. KeyGuard finds exactly these 'structurally defective keys' — not because the cipher is weak, but because some implementations are broken.",
|
| 294 |
+
about_k1h:"🔗 Shared prime (batch-GCD)", about_k1d:"Devices reuse a prime → one GCD recovers both private keys",
|
| 295 |
+
about_k2h:"🤏 Close primes (Fermat)", about_k2d:"If the two primes are too close, even 2048-bit factors instantly",
|
| 296 |
+
about_k3h:"🧬 ROCA (CVE-2017-15361)", about_k3d:"Detects the vulnerable key pattern from certain faulty chips",
|
| 297 |
+
about_k4h:"📏 Short/weak keys", about_k4d:"≤768-bit (factorable), <2048 (replace), bad exponent",
|
| 298 |
+
chk_h:"🔎 Public-key self-check",
|
| 299 |
+
chk_hint:"Paste one RSA public key per line. Formats: PEM (-----BEGIN PUBLIC KEY-----), hex modulus, decimal N, or N:e. Paste keys from several devices together to also check for shared primes.",
|
| 300 |
+
chk_sample:"⚡ Don't want to type? Click a sample type to see results instantly",
|
| 301 |
+
chk_ph:"e.g.)\n-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqh...\n-----END PUBLIC KEY-----\n\nor a hex modulus:\nC897A647627FAEBB...\n\nor N:e form:\n2533...9077 : 65537",
|
| 302 |
+
chk_consent:"The public keys I'm checking belong to devices I own or am authorized to test. I will not test anyone else's devices or keys without permission.",
|
| 303 |
+
chk_run:"Run self-check", chk_clear:"Clear",
|
| 304 |
+
chk_note:"All checks run entirely inside your browser. No key is stored or sent to any server (use 'Clear' to wipe the input immediately). Even for a breakable key, the recovered private key is never shown — only the fact that it is recoverable.",
|
| 305 |
+
how_eye:"How to use", how_h:"Three simple steps",
|
| 306 |
+
how1h:"1. Paste public keys", how1d:"Paste the public keys (certificates / SSH public keys) of your servers, routers, IoT devices. Never paste private keys.",
|
| 307 |
+
how2h:"2. Run", how2d:"Your browser runs the math checks instantly. No network — all on your device.",
|
| 308 |
+
how3h:"3. See results", how3d:"Safe / Caution / Danger at a glance. If dangerous, it tells you why.",
|
| 309 |
+
what_eye:"What it checks", what_h:"Four fatal defects",
|
| 310 |
+
w1h:"Keys too short", w1d:"≤768-bit is factorable today; <2048 should be replaced.",
|
| 311 |
+
w2h:"Close primes (Fermat)", w2d:"If the two primes are too close, even a 2048-bit key breaks instantly.",
|
| 312 |
+
w3h:"Shared primes (batch-GCD)", w3d:"If devices share a prime, one GCD opens both.",
|
| 313 |
+
w4h:"ROCA faulty chips", w4d:"Detects vulnerable keys from certain chips (CVE-2017-15361).",
|
| 314 |
+
proof_eye:"Verified", proof_h:"Validated on real large-scale public keys",
|
| 315 |
+
proof_lead:"Detects planted weak keys exactly, and verified at scale on 350K+ real public keys from Certificate Transparency (CT) logs.",
|
| 316 |
+
proof_s1:"Detection accuracy on planted weak keys (0 false positives)", proof_s2:"Real CT public keys analyzed (on Spark)", proof_s3:"Keys sent to any server (all client-side)",
|
| 317 |
+
proof_note:"Note: Web certificates in public CT logs are usually well-generated, so weak keys are rare there. Weak keys mostly live in self-signed certs of embedded/IoT devices — which is why checking YOUR OWN devices with this tool matters.",
|
| 318 |
+
faq_eye:"FAQ", faq_h:"Common questions",
|
| 319 |
+
faq1q:"Will my private key leak?", faq1a:"No. You paste only the public key, and even that never leaves your browser.",
|
| 320 |
+
faq2q:"How can a public key alone reveal a break?", faq2a:"A public key contains the 'product' of two primes. If primes are close or shared, that product alone lets us recover them.",
|
| 321 |
+
faq3q:"Can I paste many devices at once?", faq3a:"Yes, recommended. Shared-prime checks require several keys pasted together.",
|
| 322 |
+
faq4q:"If it says Safe, am I 100% safe?", faq4a:"It means the four defects this tool checks are absent. Other aspects of your crypto need separate review.",
|
| 323 |
+
faq_warn:"⚠️ Use this tool only on public keys of devices you own or are authorized to test. Testing or intruding on others' systems without permission is illegal.",
|
| 324 |
+
foot1:"KeyGuard · public-key self-check · all checks run only inside your browser",
|
| 325 |
+
foot2:"For education and checking your own assets · follows Responsible Disclosure",
|
| 326 |
+
b_safe:"Safe", b_weak:"Caution", b_bad:"Danger",
|
| 327 |
+
s_tot:"Keys checked", s_safe:"Safe", s_warn:"Caution", s_bad:"Danger",
|
| 328 |
+
f_nodefect:"No known defect",
|
| 329 |
+
f_size_c:(b)=>`Key length ${b}-bit — within factorable range`,
|
| 330 |
+
f_size_w:(b)=>`Key length ${b}-bit — under 2048, replace recommended`,
|
| 331 |
+
f_exp:(e)=>`Public exponent e=${e} is abnormal`,
|
| 332 |
+
f_fermat:(it)=>`Close primes (Fermat) — private key recoverable (${it} iters)`,
|
| 333 |
+
f_roca:"Possible ROCA fingerprint — needs deeper check (CVE-2017-15361)",
|
| 334 |
+
f_shared:(w)=>`🔗 Shared prime (${w}) — private key recoverable`,
|
| 335 |
+
key_n:(i,b)=>`Key #${i} · ${b}bit`,
|
| 336 |
+
shared_title:"🔗 Shared primes found — these keys can recover each other's private key",
|
| 337 |
+
shared_row:(a,b,bits)=>`${bits}-bit shared prime — both recoverable (private key value not shown)`,
|
| 338 |
+
shared_pair:(a,b)=>`Key #${a} ↔ Key #${b}`,
|
| 339 |
+
noshare_t:"No shared primes", noshare_d:(n)=>`The ${n} keys you entered do not share any prime (batch-GCD check complete).`,
|
| 340 |
+
single_t:"Shared-prime check needs 2+ keys", single_d:"Paste public keys from several devices to check for shared primes.",
|
| 341 |
+
al_consent:"Please check the ownership/authorization box.", al_nokey:"No valid RSA public key found. Please check the format.",
|
| 342 |
+
busy:"Checking…",
|
| 343 |
+
sample:{fermat:["🤏 Close primes","1024-bit key with primes too close — factored instantly by Fermat"],shared:["🔗 Shared prime (2 devices)","Two devices share a prime — both broken by batch-GCD"],short:["📏 Key too short","512-bit — within factorable range"],bade:["⚠️ Bad exponent","Public exponent e=2 (misconfigured)"],safe:["✓ Healthy key","A well-generated real 2048-bit certificate key — safe"],mix:["🎯 Mix everything","All types at once — full report"]}
|
| 344 |
+
},
|
| 345 |
+
zh:{
|
| 346 |
+
tag:"100% 在浏览器内检测 · 密钥绝不发送到任何服务器",
|
| 347 |
+
h1a:"你设备的加密密钥,", h1b:"会不会是次品?",
|
| 348 |
+
lead:"如果工厂错误地给多台设备出厂了相同的秘密素数,任何人只要找到它就能打开所有这些设备。KeyGuard 用数学在 30 秒内检测你的公钥是否就是这种次品密钥。",
|
| 349 |
+
sub:"只粘贴公钥,不要粘贴私钥。公钥本来就是公开的,所以这是安全的。",
|
| 350 |
+
about_h:"这是什么?",
|
| 351 |
+
about_p1:"RSA 密钥是'由两个大素数相乘得到的锁'。知道这两个素数就能开锁——通常无法找到它们,所以是安全的。问题出在随机性差的廉价设备在开机后立即生成密钥时。",
|
| 352 |
+
about_p2:"当两台不同设备碰巧使用了相同的素数,或两个素数取得太接近时,仅凭公钥就能还原出私钥。KeyGuard 正是找出这类'结构性缺陷密钥'——不是因为算法弱,而是因为某些实现有缺陷。",
|
| 353 |
+
about_k1h:"🔗 素数共享 (batch-GCD)", about_k1d:"多台设备复用同一素数 → 一次求最大公约数即可还原双方私钥",
|
| 354 |
+
about_k2h:"🤏 相近素数 (Fermat)", about_k2d:"若两素数过于接近,即使 2048 位也能瞬间分解",
|
| 355 |
+
about_k3h:"🧬 ROCA (CVE-2017-15361)", about_k3d:"检测某些缺陷芯片生成的易受攻击密钥模式",
|
| 356 |
+
about_k4h:"📏 过短/弱密钥", about_k4d:"≤768 位(可分解)、<2048(建议更换)、异常指数",
|
| 357 |
+
chk_h:"🔎 公钥自检",
|
| 358 |
+
chk_hint:"每行粘贴一个 RSA 公钥。格式:PEM(-----BEGIN PUBLIC KEY-----)、十六进制模数、十进制 N、或 N:e。把多台设备的密钥一起粘贴可同时检测是否共享素数。",
|
| 359 |
+
chk_sample:"⚡ 懒得输入?点击一个示例类型,立即查看结果",
|
| 360 |
+
chk_ph:"例如)\n-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqh...\n-----END PUBLIC KEY-----\n\n或十六进制模数:\nC897A647627FAEBB...\n\n或 N:e 形式:\n2533...9077 : 65537",
|
| 361 |
+
chk_consent:"我要检测的公钥属于我拥有或已获授权检测的设备。我不会未经许可检测他人的设备或密钥。",
|
| 362 |
+
chk_run:"运行自检", chk_clear:"清除",
|
| 363 |
+
chk_note:"所有检测完全在你的浏览器内运行。任何密钥都不会被存储或发送到服务器(可用'清除'立即清空输入),即使是可破解的密钥,也绝不显示还原出的私钥值,只告知'可被还原'这一事实。",
|
| 364 |
+
how_eye:"如何使用", how_h:"三步搞定",
|
| 365 |
+
how1h:"1. 粘贴公钥", how1d:"粘贴你的服务器、路由器、IoT 设备的公钥(证书 / SSH 公钥)。切勿粘贴私钥。",
|
| 366 |
+
how2h:"2. 运行", how2d:"浏览器立即运行数学检测。无网络传输——全部在你的设备内。",
|
| 367 |
+
how3h:"3. 查看结果", how3d:"安全 / 注意 / 危险 一目了然。若危险,会告诉你原因。",
|
| 368 |
+
what_eye:"检测什么", what_h:"四种致命缺陷",
|
| 369 |
+
w1h:"过短的密钥", w1d:"≤768 位如今可分解,<2048 建议更换。",
|
| 370 |
+
w2h:"相近素数 (Fermat)", w2d:"若两素数过于接近,即使 2048 位也瞬间被破。",
|
| 371 |
+
w3h:"素数共享 (batch-GCD)", w3d:"若设备共享素数,一次求最大公约数即可打开双方。",
|
| 372 |
+
w4h:"ROCA 缺陷芯片", w4d:"检测某些芯片(CVE-2017-15361)生成的易受攻击密钥。",
|
| 373 |
+
proof_eye:"已验证", proof_h:"已在真实大规模公钥上完成验证",
|
| 374 |
+
proof_lead:"精确检出植入的弱密钥,并在证书透明度(CT)日志的 35 万+ 真实公钥上验证了大规模运行。",
|
| 375 |
+
proof_s1:"对植入弱密钥的检出准确率(0 误报)", proof_s2:"分析的真实 CT 公钥(在 Spark 上)", proof_s3:"发送到服务器的密钥(全部在客户端)",
|
| 376 |
+
proof_note:"注:公共 CT 日志中的网站证书通常生成良好,弱密钥很少见。弱密钥主要存在于嵌入式/IoT 设备的自签名证书中——这正是用本工具检测'你自己的设备'的意义所在。",
|
| 377 |
+
faq_eye:"常见问题", faq_h:"你可能想问",
|
| 378 |
+
faq1q:"我的私钥会泄露吗?", faq1a:"不会。你只粘贴公钥,而且它也不会离开你的浏览器。",
|
| 379 |
+
faq2q:"为什么仅凭公钥就能知道会被破解?", faq2a:"公钥里含有两个素数的'乘积'。若素数相近或共享,仅凭该乘积就能还原它们。",
|
| 380 |
+
faq3q:"可以一次粘贴多台设备吗?", faq3a:"可以,建议如此。素数共享检测需要同时粘贴多个密钥。",
|
| 381 |
+
faq4q:"显示安全就 100% 放心吗?", faq4a:"意味着本工具检测的四种缺陷不存在。加密的其他方面需要单独审查。",
|
| 382 |
+
faq_warn:"⚠️ 本工具仅可用于你拥有或已获授权检测的设备公钥。未经许可检测或入侵他人系统是违法的。",
|
| 383 |
+
foot1:"KeyGuard · 公钥自检 · 所有检测仅在你的浏览器内运行",
|
| 384 |
+
foot2:"用于教育及自有资产检测 · 遵循负责任披露(Responsible Disclosure)原则",
|
| 385 |
+
b_safe:"安全", b_weak:"注意", b_bad:"危险",
|
| 386 |
+
s_tot:"已检测密钥", s_safe:"安全", s_warn:"注意", s_bad:"危险",
|
| 387 |
+
f_nodefect:"无已知缺陷",
|
| 388 |
+
f_size_c:(b)=>`密钥长度 ${b} 位 — 处于可分解范围`,
|
| 389 |
+
f_size_w:(b)=>`密钥长度 ${b} 位 — 不足 2048,建议更换`,
|
| 390 |
+
f_exp:(e)=>`公开指数 e=${e} 异常`,
|
| 391 |
+
f_fermat:(it)=>`相近素数(Fermat) — 私钥可还原(${it} 次迭代)`,
|
| 392 |
+
f_roca:"疑似 ROCA 指纹 — 需进一步检测 (CVE-2017-15361)",
|
| 393 |
+
f_shared:(w)=>`🔗 素数共享 (${w}) — 私钥可还原`,
|
| 394 |
+
key_n:(i,b)=>`密钥 #${i} · ${b}bit`,
|
| 395 |
+
shared_title:"🔗 发现素数共享 — 以下密钥可互相还原对方私钥",
|
| 396 |
+
shared_row:(a,b,bits)=>`${bits} 位素数共享 — 双方均可还原(不显示私钥值)`,
|
| 397 |
+
shared_pair:(a,b)=>`密钥 #${a} ↔ 密钥 #${b}`,
|
| 398 |
+
noshare_t:"无素数共享", noshare_d:(n)=>`你输入的 ${n} 个密钥彼此不共享素数(batch-GCD 检测完成)。`,
|
| 399 |
+
single_t:"素数共享检测需要 2 个以上密钥", single_d:"把多台设备的公钥一起粘贴可检测是否共享素数。",
|
| 400 |
+
al_consent:"请勾选所有权/授权确认项。", al_nokey:"未找到有效的 RSA 公钥,请检查格式。",
|
| 401 |
+
busy:"检测中…",
|
| 402 |
+
sample:{fermat:["🤏 相近素数","两素数过近的 1024 位密钥 — 被 Fermat 瞬间分解"],shared:["🔗 素数共享 (2台)","两台设备共享素数 — 被 batch-GCD 同时攻破"],short:["📏 密钥过短","512 位 — 处于可分解范围"],bade:["⚠️ 异常指数","公开指数 e=2(配置错误)"],safe:["✓ 正常密钥","生成良好的真实 2048 位证书密钥 — 安全"],mix:["🎯 全部混合","一次检测以上所有类型 — 综合报告"]}
|
| 403 |
+
}
|
| 404 |
+
};
|
| 405 |
+
let LANG='ko';
|
| 406 |
+
function t(k){return (I18N[LANG]&&I18N[LANG][k])!=null?I18N[LANG][k]:I18N.en[k];}
|
| 407 |
+
function applyLang(){
|
| 408 |
+
document.documentElement.setAttribute('lang',LANG);
|
| 409 |
+
document.querySelectorAll('[data-i18n]').forEach(el=>{const v=t(el.getAttribute('data-i18n'));if(typeof v==='string')el.textContent=v;});
|
| 410 |
+
document.querySelectorAll('[data-i18n-ph]').forEach(el=>{const v=t(el.getAttribute('data-i18n-ph'));if(typeof v==='string')el.setAttribute('placeholder',v);});
|
| 411 |
+
document.querySelectorAll('#langsw button').forEach(b=>b.classList.toggle('on',b.dataset.lang===LANG));
|
| 412 |
+
renderChips();
|
| 413 |
+
if($('results').style.display==='block'){ /* keep results; labels refresh on next run */ }
|
| 414 |
+
}
|
| 415 |
+
function detectLang(){
|
| 416 |
+
try{const s=localStorage.getItem('kg-lang');if(s&&I18N[s])return s;}catch(e){}
|
| 417 |
+
const n=(navigator.language||navigator.userLanguage||'en').toLowerCase();
|
| 418 |
+
if(n.startsWith('ko'))return 'ko';
|
| 419 |
+
if(n.startsWith('zh'))return 'zh';
|
| 420 |
+
return 'en';
|
| 421 |
+
}
|
| 422 |
+
|
| 423 |
+
/* ================= crypto engine ================= */
|
| 424 |
+
function bi(x){return BigInt(x);}
|
| 425 |
+
function bgcd(a,b){a=a<0n?-a:a;b=b<0n?-b:b;while(b){[a,b]=[b,a%b];}return a;}
|
| 426 |
+
function bisqrt(n){if(n<0n)return -1n;if(n<2n)return n;let x=n,y=(x+1n)/2n;while(y<x){x=y;y=(x+n/x)/2n;}return x;}
|
| 427 |
+
function bitlen(n){return n.toString(2).length;}
|
| 428 |
+
function fermat(n,maxIter){
|
| 429 |
+
if(n%2n===0n)return {p:2n,q:n/2n,iter:0};
|
| 430 |
+
let a=bisqrt(n);if(a*a<n)a+=1n;
|
| 431 |
+
for(let i=0;i<maxIter;i++){let b2=a*a-n;if(b2>=0n){let b=bisqrt(b2);if(b*b===b2){let p=a-b,q=a+b;if(p>1n&&p*q===n)return{p,q,iter:i};}}a+=1n;}
|
| 432 |
+
return null;
|
| 433 |
+
}
|
| 434 |
+
const ROCA_PRIMES=[3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,151,163,167];
|
| 435 |
+
function rocaHeuristic(n){try{for(const p of ROCA_PRIMES){const P=bi(p);let res=new Set();let x=1n;for(let k=1;k<p;k++){x=(x*65537n)%P;res.add(x.toString());}const r=(n%P);if(r!==0n&&!res.has(r.toString()))return false;}return true;}catch(e){return false;}}
|
| 436 |
+
function b64ToBytes(b64){const bin=atob(b64.replace(/\s+/g,''));const a=new Uint8Array(bin.length);for(let i=0;i<bin.length;i++)a[i]=bin.charCodeAt(i);return a;}
|
| 437 |
+
function derIntegers(bytes){const out=[];let i=0;function len(){let l=bytes[i++];if(l&0x80){let k=l&0x7f;l=0;while(k--)l=(l<<8)|bytes[i++];}return l;}function walk(end){while(i<end){const tag=bytes[i++];const l=len();const s=i;if(tag===0x02){let hex='';for(let j=s;j<s+l;j++)hex+=bytes[j].toString(16).padStart(2,'0');if(hex)out.push(BigInt('0x'+hex));i=s+l;}else if(tag===0x30||tag===0x31||tag===0x03){walk(s+l);i=s+l;}else{i=s+l;}}}try{walk(bytes.length);}catch(e){}return out;}
|
| 438 |
+
function parseNum(s){s=s.trim().replace(/\s/g,'');if(/^0x/i.test(s))return BigInt(s);if(/^[0-9]+$/.test(s))return BigInt(s);if(/^[0-9a-fA-F]+$/.test(s))return BigInt('0x'+s);throw 'bad';}
|
| 439 |
+
function parseKey(line){line=line.trim();if(!line)return null;if(line.includes('BEGIN')){const m=line.match(/-----BEGIN[^-]+-----([\s\S]*?)-----END/);if(m){const ints=derIntegers(b64ToBytes(m[1]));if(ints.length){let n=ints.reduce((a,b)=>bitlen(b)>bitlen(a)?b:a,0n);let e=ints.filter(x=>x!==n&&x>2n&&x<(1n<<64n)).sort((a,b)=>bitlen(b)-bitlen(a))[0]||65537n;return{n,e};}}return null;}if(line.includes(':')){const[a,b]=line.split(':');try{return{n:parseNum(a),e:parseNum(b)};}catch(e){return null;}}try{return{n:parseNum(line),e:65537n};}catch(e){return null;}}
|
| 440 |
+
function assess(n,e){const bits=bitlen(n);const flags=[];let level='safe';
|
| 441 |
+
if(bits<=768){level='critical';flags.push(t('f_size_c')(bits));}else if(bits<2048){level='weak';flags.push(t('f_size_w')(bits));}
|
| 442 |
+
if(e<3n||e%2n===0n){level='critical';flags.push(t('f_exp')(e));}
|
| 443 |
+
const f=fermat(n,2000);if(f){level='critical';flags.push(t('f_fermat')(f.iter));}
|
| 444 |
+
if(bits>=512&&rocaHeuristic(n)){if(level==='safe')level='weak';flags.push(t('f_roca'));}
|
| 445 |
+
return{bits,level,flags,factored:!!f};}
|
| 446 |
+
|
| 447 |
+
/* ================= UI ================= */
|
| 448 |
+
const $=id=>document.getElementById(id);
|
| 449 |
+
function esc(s){return String(s).replace(/[&<>]/g,c=>({'&':'&','<':'<','>':'>'}[c]));}
|
| 450 |
+
const sleep=ms=>new Promise(r=>setTimeout(r,ms));let BUSY=false;
|
| 451 |
+
async function runCheck(){
|
| 452 |
+
if(BUSY)return;
|
| 453 |
+
if(!$('consent').checked){alert(t('al_consent'));return;}
|
| 454 |
+
BUSY=true;const btn=$('runbtn');const prev=btn.textContent;btn.textContent=t('busy');btn.style.opacity='.7';
|
| 455 |
+
await sleep(30);try{await doCheck();}finally{btn.textContent=prev;btn.style.opacity='1';BUSY=false;}
|
| 456 |
+
}
|
| 457 |
+
async function doCheck(){
|
| 458 |
+
const lines=$('keyin').value.split('\n');const blocks=[];let buf='';
|
| 459 |
+
for(const ln of lines){if(ln.includes('BEGIN'))buf=ln+'\n';else if(buf){buf+=ln+'\n';if(ln.includes('END')){blocks.push(buf);buf='';}}else if(ln.trim())blocks.push(ln);}
|
| 460 |
+
const parsed=[];blocks.forEach((b,i)=>{const k=parseKey(b);if(k&&k.n>1n)parsed.push({idx:i+1,...k});});
|
| 461 |
+
if(!parsed.length){$('results').style.display='none';alert(t('al_nokey'));return;}
|
| 462 |
+
const shared=[];const sharedMap={};
|
| 463 |
+
for(let a=0;a<parsed.length;a++)for(let b=a+1;b<parsed.length;b++){const g=bgcd(parsed[a].n,parsed[b].n);if(g!==1n&&g!==parsed[a].n&&g!==parsed[b].n){const bits=bitlen(g);shared.push([parsed[a].idx,parsed[b].idx,bits]);(sharedMap[parsed[a].idx]=sharedMap[parsed[a].idx]||[]).push(parsed[b].idx);(sharedMap[parsed[b].idx]=sharedMap[parsed[b].idx]||[]).push(parsed[a].idx);}}
|
| 464 |
+
let nSafe=0,nWeak=0,nBad=0;const rows=[];
|
| 465 |
+
for(const k of parsed){await sleep(0);const r=assess(k.n,k.e);
|
| 466 |
+
if(sharedMap[k.idx]){r.level='critical';r.flags.unshift(t('f_shared')(sharedMap[k.idx].map(x=>'#'+x).join(', ')));}
|
| 467 |
+
if(r.level==='safe')nSafe++;else if(r.level==='weak')nWeak++;else nBad++;
|
| 468 |
+
const emoji=r.level==='safe'?'✓':r.level==='weak'?'!':'✕';const badge=r.level==='safe'?t('b_safe'):r.level==='weak'?t('b_weak'):t('b_bad');
|
| 469 |
+
rows.push(`<div class="res ${r.level}"><div class="ic">${emoji}</div><div class="body"><div class="tt">${esc(t('key_n')(k.idx,r.bits))}</div><div class="ds">${r.flags.length?esc(r.flags.join(' / ')):esc(t('f_nodefect'))}</div></div><span class="badge">${badge}</span></div>`);}
|
| 470 |
+
$('summary').innerHTML=`<div class="card stat tot"><div class="n">${parsed.length}</div><div class="l">${esc(t('s_tot'))}</div></div><div class="card stat ok"><div class="n">${nSafe}</div><div class="l">${esc(t('s_safe'))}</div></div><div class="card stat warn"><div class="n">${nWeak}</div><div class="l">${esc(t('s_warn'))}</div></div><div class="card stat bad"><div class="n">${nBad}</div><div class="l">${esc(t('s_bad'))}</div></div>`;
|
| 471 |
+
$('reslist').innerHTML=rows.join('');
|
| 472 |
+
if(shared.length){$('sharedbox').innerHTML=`<div class="shared"><h3>${esc(t('shared_title'))}</h3>`+shared.map(s=>`<div class="res critical"><div class="ic">✕</div><div class="body"><div class="tt">${esc(t('shared_pair')(s[0],s[1]))}</div><div class="ds">${esc(t('shared_row')(s[0],s[1],s[2]))}</div></div><span class="badge">${t('b_bad')}</span></div>`).join('')+`</div>`;}
|
| 473 |
+
else if(parsed.length>=2){$('sharedbox').innerHTML=`<div class="res safe" style="margin-top:12px"><div class="ic">✓</div><div class="body"><div class="tt">${esc(t('noshare_t'))}</div><div class="ds">${esc(t('noshare_d')(parsed.length))}</div></div><span class="badge">${t('b_safe')}</span></div>`;}
|
| 474 |
+
else{$('sharedbox').innerHTML=`<div class="res safe" style="margin-top:12px;opacity:.75"><div class="ic">ℹ</div><div class="body"><div class="tt">${esc(t('single_t'))}</div><div class="ds">${esc(t('single_d'))}</div></div></div>`;}
|
| 475 |
+
$('results').style.display='block';$('results').scrollIntoView({behavior:'smooth',block:'start'});
|
| 476 |
+
}
|
| 477 |
+
function renderChips(){const box=$('schips');if(!box||typeof SAMPLES==='undefined')return;const order=['fermat','shared','short','bade','safe','mix'];const sm=t('sample');
|
| 478 |
+
box.innerHTML=order.map(k=>`<button class="schip ${k==='mix'?'mix':''}" data-k="${k}"><span class="st">${esc(sm[k][0])}</span><span class="sd">${esc(sm[k][1])}</span></button>`).join('');
|
| 479 |
+
box.querySelectorAll('.schip').forEach(b=>b.onclick=()=>{const s=SAMPLES[b.dataset.k];$('keyin').value=s.keys.join('\n');$('consent').checked=true;runCheck();});}
|
| 480 |
+
$('clearbtn').onclick=()=>{$('keyin').value='';$('results').style.display='none';};
|
| 481 |
+
$('runbtn').onclick=runCheck;
|
| 482 |
+
document.querySelectorAll('#langsw button').forEach(b=>b.onclick=()=>{LANG=b.dataset.lang;try{localStorage.setItem('kg-lang',LANG);}catch(e){}applyLang();});
|
| 483 |
+
$('themeToggle').onclick=()=>{const r=document.documentElement;r.setAttribute('data-theme',r.getAttribute('data-theme')==='dark'?'light':'dark');try{localStorage.setItem('kg-theme',r.getAttribute('data-theme'));}catch(e){}};
|
| 484 |
+
try{const th=localStorage.getItem('kg-theme');if(th)document.documentElement.setAttribute('data-theme',th);}catch(e){}
|
| 485 |
+
LANG=detectLang();applyLang();
|
| 486 |
+
</script>
|
| 487 |
+
</body>
|
| 488 |
</html>
|
samples.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
const SAMPLES={"fermat": {"label": "🤏 가까운 소수", "desc": "두 소수가 너무 가까운 1024비트 키 — Fermat로 즉시 분해", "keys": ["165740310893950791963080648259560377417600668037856971122579294760593437997811062453641009107972418999653010614512879605184789798788691046285152395069252904773142058841979296558168009505641678864837102879216831048978292469707744419623928055182604641461023621870677537632000577293581613638933973299213270048689"]}, "shared": {"label": "🔗 소수 공유 (2대)", "desc": "두 장비가 같은 소수 사용 — batch-GCD로 양쪽 다 뚫림", "keys": ["122999309904795606444099469256191469962290192628139352860330903138264642829513536530393698630513130413578696934090209127533759241336670218721143947979292951203889375825851692806369573381863950054829925127335860282126261630629011973584397500812891624355525994945468366706371557213283022902116677350015119423393", "115702847740851406004496880411525279046774113558221154668783745631082025479454934859143672190101742717737193323826507027112638071846239708273371737780977562487967376780115862348624837231009521061643309777407058750141585998203669272382184089761460771208454969724030145404105705198028849740719577426552157318549"]}, "short": {"label": "📏 너무 짧은 키", "desc": "512비트 — 현재 분해 가능 범위", "keys": ["6953641624075976509241920594462086876163007012122277123492439135910211285532422929398191806674226231484703413652198171004073350379864968603144123356175579"]}, "bade": {"label": "⚠️ 비정상 지수", "desc": "공개지수 e=2 (잘못된 설정)", "keys": ["18936189060662270933358984902162529722061659031379078092011818901943508404141314569027956269112979021847737078841908257431230511729231229194669506936553108319986508676841347218898706708185372243940423767169621683275570066910819261327596324375696695941603999821964110875286837805160168031437264418465197612479242968388327670757492451770398693271447126050715575283462140278300379431217139934025278883762279646956676780939778778319374767775794971280378097800735230275197308525833724447369867149974990341803069736514022181317054621824375103943628425075086369243759953884893144037506866290735455869023534586234351149323057:2"]}, "safe": {"label": "✓ 정상 키", "desc": "잘 생성된 2048비트 실제 인증서 키 — 안전", "keys": ["18936189060662270933358984902162529722061659031379078092011818901943508404141314569027956269112979021847737078841908257431230511729231229194669506936553108319986508676841347218898706708185372243940423767169621683275570066910819261327596324375696695941603999821964110875286837805160168031437264418465197612479242968388327670757492451770398693271447126050715575283462140278300379431217139934025278883762279646956676780939778778319374767775794971280378097800735230275197308525833724447369867149974990341803069736514022181317054621824375103943628425075086369243759953884893144037506866290735455869023534586234351149323057"]}, "mix": {"label": "🎯 전부 섞기", "desc": "위 모든 유형을 한 번에 — 종합 리포트", "keys": ["165740310893950791963080648259560377417600668037856971122579294760593437997811062453641009107972418999653010614512879605184789798788691046285152395069252904773142058841979296558168009505641678864837102879216831048978292469707744419623928055182604641461023621870677537632000577293581613638933973299213270048689", "122999309904795606444099469256191469962290192628139352860330903138264642829513536530393698630513130413578696934090209127533759241336670218721143947979292951203889375825851692806369573381863950054829925127335860282126261630629011973584397500812891624355525994945468366706371557213283022902116677350015119423393", "115702847740851406004496880411525279046774113558221154668783745631082025479454934859143672190101742717737193323826507027112638071846239708273371737780977562487967376780115862348624837231009521061643309777407058750141585998203669272382184089761460771208454969724030145404105705198028849740719577426552157318549", "6953641624075976509241920594462086876163007012122277123492439135910211285532422929398191806674226231484703413652198171004073350379864968603144123356175579", "18936189060662270933358984902162529722061659031379078092011818901943508404141314569027956269112979021847737078841908257431230511729231229194669506936553108319986508676841347218898706708185372243940423767169621683275570066910819261327596324375696695941603999821964110875286837805160168031437264418465197612479242968388327670757492451770398693271447126050715575283462140278300379431217139934025278883762279646956676780939778778319374767775794971280378097800735230275197308525833724447369867149974990341803069736514022181317054621824375103943628425075086369243759953884893144037506866290735455869023534586234351149323057:2", "18936189060662270933358984902162529722061659031379078092011818901943508404141314569027956269112979021847737078841908257431230511729231229194669506936553108319986508676841347218898706708185372243940423767169621683275570066910819261327596324375696695941603999821964110875286837805160168031437264418465197612479242968388327670757492451770398693271447126050715575283462140278300379431217139934025278883762279646956676780939778778319374767775794971280378097800735230275197308525833724447369867149974990341803069736514022181317054621824375103943628425075086369243759953884893144037506866290735455869023534586234351149323057"]}};
|