-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.html
More file actions
87 lines (78 loc) · 4.72 KB
/
app.html
File metadata and controls
87 lines (78 loc) · 4.72 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CyberGuard - Password Security Tool</title>
<link rel="icon" type="image/png" href="logo.png">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<script src="zxcvbn.js"></script>
</head>
<body>
<div class="container">
<h1>CyberGuard</h1>
<p class="subtitle">Advanced Password Security Tool</p>
<div class="card" id="analyzeCard">
<form id="passwordForm">
<label for="password">Analyze Password:</label>
<div class="password-container">
<input type="password" id="passwordInput" placeholder="Enter or generate password" autocomplete="off">
<div class="copy-icon" id="copyPassword" title="Copy to clipboard">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>
</div>
<div class="eye-icon" id="togglePassword">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>
</div>
</div>
<div class="strength-meter">
<div class="strength-bar" id="strengthBar"></div>
</div>
<div id="crackTimeMessage" style="font-size: 13px; color: var(--text-muted); margin-bottom: 5px; font-weight: 500;"></div>
<div class="feedback-message" id="strengthMessage">Enter a password to analyze</div>
<div id="pwnedMessage" class="feedback-message" style="display: none;"></div>
</form>
</div>
<div class="card generator-card">
<h3>Secure Password Generator</h3>
<div class="generator-options">
<div style="margin-bottom: 20px;">
<label for="memorableKeyword">Memorable Keyword (Optional):</label>
<input type="text" id="memorableKeyword" placeholder="e.g. Adaovi" autocomplete="off" style="padding: 10px 14px; margin-bottom: 5px;">
</div>
<div class="slider-container">
<label for="lengthSlider">Total Length: <span id="lengthValue">16</span></label>
<input type="range" id="lengthSlider" min="12" max="64" value="22" aria-label="Password Length">
</div>
<div class="checkbox-grid">
<label class="checkbox-container">Uppercase
<input type="checkbox" id="incUppercase" checked>
<span class="checkmark"></span>
</label>
<label class="checkbox-container">Lowercase
<input type="checkbox" id="incLowercase" checked>
<span class="checkmark"></span>
</label>
<label class="checkbox-container">Numbers
<input type="checkbox" id="incNumbers" checked>
<span class="checkmark"></span>
</label>
<label class="checkbox-container">Symbols
<input type="checkbox" id="incSymbols" checked>
<span class="checkmark"></span>
</label>
</div>
</div>
<button id="generateBtn" class="btn primary-btn">Generate Secure Password</button>
</div>
<div class="card history-card" id="historyCard" style="display: none; padding: 20px;">
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;">
<h3 style="margin: 0; font-size: 16px;">Session History</h3>
<span style="font-size: 12px; color: var(--text-muted);">Last 5</span>
</div>
<ul id="passwordHistory" style="list-style: none; padding: 0; margin: 0; font-size: 14px; font-family: 'Inter', monospace; display: flex; flex-direction: column; gap: 8px;"></ul>
</div>
</div>
<script src="script.js"></script>
</body>
</html>