RC2
This commit is contained in:
2
main.go
2
main.go
@@ -144,7 +144,7 @@ func generatePGP(in genInput) (*genResult, error) {
|
||||
name := sanitizeName(in.Name)
|
||||
email := sanitizeEmail(in.Email)
|
||||
if !validateEmailBasic(email) {
|
||||
return nil, errors.New("ungültige E‑Mail-Adresse")
|
||||
return nil, errors.New("ungültige E-Mail-Adresse")
|
||||
}
|
||||
if name == "" {
|
||||
return nil, errors.New("Name darf nicht leer sein")
|
||||
|
||||
@@ -33,15 +33,15 @@
|
||||
<input id="name" name="name" placeholder="Max Mustermann" required />
|
||||
</div>
|
||||
<div>
|
||||
<label for="email">E‑Mail</label>
|
||||
<label for="email">E-Mail</label>
|
||||
<input id="email" name="email" type="email" placeholder="max@example.org" required />
|
||||
</div>
|
||||
<div>
|
||||
<label for="comment">Kommentar (optional)</label>
|
||||
<input id="comment" name="comment" placeholder="z. B. Laptop‑Key" />
|
||||
<input id="comment" name="comment" placeholder="z.B. Laptop-Key" />
|
||||
</div>
|
||||
<div>
|
||||
<label for="rsabits">RSA‑Schlüssellänge</label>
|
||||
<label for="rsabits">RSA-Schlüssellänge</label>
|
||||
<select id="rsabits" name="rsabits">
|
||||
<option value="2048">2048</option>
|
||||
<option value="3072">3072</option>
|
||||
@@ -56,10 +56,10 @@
|
||||
</div>
|
||||
<div style="margin-top:1rem" class="row">
|
||||
<button type="submit">Schlüssel erzeugen</button>
|
||||
<small class="muted">Die Erzeugung erfolgt serverseitig – nur lokal auf diesem Host. Schlüssel werden nicht gespeichert.</small>
|
||||
<small class="muted">Die Erzeugung erfolgt serverseitig - nur lokal auf diesem Host. Schlüssel werden nicht gespeichert.</small>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<p class="footer">Hinweis: Für maximale Sicherheit sollten PGP‑Schlüssel auf einem vertrauenswürdigen, isolierten System erzeugt werden. Dieses Tool ist zu Demo‑/Entwicklungszwecken gedacht.</p>
|
||||
<p class="footer">Hinweis: Für maximale Sicherheit sollten PGP-Schlüssel auf einem vertrauenswürdigen, isolierten System erzeugt werden.</p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>PGP Schlüssel – Ergebnis</title>
|
||||
<title>PGP Schlüssel - Ergebnis</title>
|
||||
<style>
|
||||
body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Inter,sans-serif;max-width:960px;margin:2rem auto;padding:0 1rem;color:#0f172a}
|
||||
.card{border:1px solid #e2e8f0;border-radius:14px;padding:1rem 1.25rem;box-shadow:0 1px 2px rgba(0,0,0,0.04);margin-bottom:1rem}
|
||||
|
||||
Reference in New Issue
Block a user