-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
214 lines (206 loc) · 11 KB
/
Copy pathindex.html
File metadata and controls
214 lines (206 loc) · 11 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
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sicherer Passwortmanager</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<div id="loginScreen" class="screen active">
<div class="login-box">
<div class="lock-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor">
<rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect>
<path d="M7 11V7a5 5 0 0 1 10 0v4"></path>
</svg>
</div>
<h1>Passwortmanager</h1>
<p class="subtitle">Gib dein Master-Passwort ein</p>
<div class="input-group">
<input type="password" id="masterPassword" placeholder="Master-Passwort">
<button class="toggle-password" onclick="togglePassword('masterPassword')">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor">
<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>
</button>
</div>
<button class="btn btn-primary" onclick="login()">Entsperren</button>
<div id="loginError" class="error-message"></div>
</div>
</div>
<div id="mainScreen" class="screen">
<header>
<div class="header-content">
<h1>
<svg class="header-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor">
<rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect>
<path d="M7 11V7a5 5 0 0 1 10 0v4"></path>
</svg>
Meine Passwörter
</h1>
<button class="btn btn-secondary" onclick="logout()">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor">
<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path>
<polyline points="16 17 21 12 16 7"></polyline>
<line x1="21" y1="12" x2="9" y2="12"></line>
</svg>
Abmelden
</button>
</div>
</header>
<div class="content">
<div class="toolbar">
<div class="search-box">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor">
<circle cx="11" cy="11" r="8"></circle>
<path d="m21 21-4.35-4.35"></path>
</svg>
<input type="text" id="searchInput" placeholder="Passwörter durchsuchen..." onkeyup="filterPasswords()">
</div>
<button class="btn btn-primary" onclick="showAddModal()">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor">
<line x1="12" y1="5" x2="12" y2="19"></line>
<line x1="5" y1="12" x2="19" y2="12"></line>
</svg>
Neues Passwort
</button>
</div>
<div id="passwordList" class="password-list"></div>
<div id="emptyState" class="empty-state">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor">
<rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect>
<path d="M7 11V7a5 5 0 0 1 10 0v4"></path>
</svg>
<h3>Keine Passwörter gespeichert</h3>
<p>Klicke auf "Neues Passwort", um zu beginnen</p>
</div>
</div>
</div>
</div>
<div id="passwordModal" class="modal">
<div class="modal-content">
<div class="modal-header">
<h2 id="modalTitle">Neues Passwort</h2>
<button class="close-btn" onclick="closeModal()">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor">
<line x1="18" y1="6" x2="6" y2="18"></line>
<line x1="6" y1="6" x2="18" y2="18"></line>
</svg>
</button>
</div>
<div class="modal-body">
<div class="form-group">
<label for="serviceName">Dienst / Website</label>
<input type="text" id="serviceName" placeholder="z.B. Gmail, Facebook">
</div>
<div class="form-group">
<label for="username">Benutzername / E-Mail</label>
<input type="text" id="username" placeholder="user@example.com">
</div>
<div class="form-group">
<label for="password">Passwort</label>
<div class="input-group">
<input type="password" id="password" placeholder="Passwort eingeben" oninput="checkPasswordStrength()">
<button class="toggle-password" onclick="togglePassword('password')">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor">
<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>
</button>
</div>
<div id="strengthMeter" class="strength-meter">
<div class="strength-bar"></div>
<span class="strength-text"></span>
</div>
</div>
<div class="form-group">
<button class="btn btn-secondary full-width" onclick="showGeneratorOptions()">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor">
<polyline points="23 4 23 10 17 10"></polyline>
<path d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"></path>
</svg>
Sicheres Passwort generieren
</button>
</div>
<div id="generatorOptions" class="generator-options" style="display: none;">
<div class="option-group">
<label>Länge: <span id="lengthValue">16</span></label>
<input type="range" id="pwdLength" min="8" max="64" value="16" oninput="updateLengthValue()">
</div>
<div class="option-group">
<label><input type="checkbox" id="useUppercase" checked> Großbuchstaben (A-Z)</label>
</div>
<div class="option-group">
<label><input type="checkbox" id="useLowercase" checked> Kleinbuchstaben (a-z)</label>
</div>
<div class="option-group">
<label><input type="checkbox" id="useNumbers" checked> Zahlen (0-9)</label>
</div>
<div class="option-group">
<label><input type="checkbox" id="useSymbols" checked> Sonderzeichen (!@#$...)</label>
</div>
<div class="option-group">
<label><input type="checkbox" id="usePassphrase"> Passphrase (Wörter statt Zeichen)</label>
</div>
<button class="btn btn-primary full-width" onclick="generatePasswordWithOptions()">Generieren</button>
</div>
<div class="form-group">
<label for="notes">Notizen (optional)</label>
<textarea id="notes" rows="3" placeholder="Zusätzliche Informationen..."></textarea>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-secondary" onclick="closeModal()">Abbrechen</button>
<button class="btn btn-primary" onclick="savePassword()">Speichern</button>
</div>
</div>
</div>
<div id="shareModal" class="modal">
<div class="modal-content">
<div class="modal-header">
<h2>Passwort sicher teilen</h2>
<button class="close-btn" onclick="closeShareModal()">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor">
<line x1="18" y1="6" x2="6" y2="18"></line>
<line x1="6" y1="6" x2="18" y2="18"></line>
</svg>
</button>
</div>
<div class="modal-body">
<p class="share-info">Erstelle einen verschlüsselten Link, der nur einmal verwendet werden kann.</p>
<div class="form-group">
<label>Ablaufzeit</label>
<select id="shareExpiry" class="form-select">
<option value="5">5 Minuten</option>
<option value="15" selected>15 Minuten</option>
<option value="60">1 Stunde</option>
<option value="1440">24 Stunden</option>
</select>
</div>
<div id="shareLink" class="share-link-container" style="display: none;">
<label>Dein sicherer Link (nur einmal verwendbar):</label>
<div class="share-link-box">
<input type="text" id="shareLinkInput" readonly>
<button class="btn btn-primary" onclick="copyShareLink()">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor">
<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>
Kopieren
</button>
</div>
<p class="share-warning">⚠️ Dieser Link funktioniert nur einmal und läuft automatisch ab!</p>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-secondary" onclick="closeShareModal()">Abbrechen</button>
<button class="btn btn-primary" id="generateShareBtn" onclick="generateShareLink()">Link erstellen</button>
</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>