This commit is contained in:
2025-09-22 20:51:58 +02:00
parent cb639ca052
commit edb97ddc58
3 changed files with 7 additions and 7 deletions

View File

@@ -144,7 +144,7 @@ func generatePGP(in genInput) (*genResult, error) {
name := sanitizeName(in.Name) name := sanitizeName(in.Name)
email := sanitizeEmail(in.Email) email := sanitizeEmail(in.Email)
if !validateEmailBasic(email) { if !validateEmailBasic(email) {
return nil, errors.New("ungültige EMail-Adresse") return nil, errors.New("ungültige E-Mail-Adresse")
} }
if name == "" { if name == "" {
return nil, errors.New("Name darf nicht leer sein") return nil, errors.New("Name darf nicht leer sein")

View File

@@ -33,15 +33,15 @@
<input id="name" name="name" placeholder="Max Mustermann" required /> <input id="name" name="name" placeholder="Max Mustermann" required />
</div> </div>
<div> <div>
<label for="email">EMail</label> <label for="email">E-Mail</label>
<input id="email" name="email" type="email" placeholder="max@example.org" required /> <input id="email" name="email" type="email" placeholder="max@example.org" required />
</div> </div>
<div> <div>
<label for="comment">Kommentar (optional)</label> <label for="comment">Kommentar (optional)</label>
<input id="comment" name="comment" placeholder="z.B. LaptopKey" /> <input id="comment" name="comment" placeholder="z.B. Laptop-Key" />
</div> </div>
<div> <div>
<label for="rsabits">RSASchlüssellänge</label> <label for="rsabits">RSA-Schlüssellänge</label>
<select id="rsabits" name="rsabits"> <select id="rsabits" name="rsabits">
<option value="2048">2048</option> <option value="2048">2048</option>
<option value="3072">3072</option> <option value="3072">3072</option>
@@ -56,10 +56,10 @@
</div> </div>
<div style="margin-top:1rem" class="row"> <div style="margin-top:1rem" class="row">
<button type="submit">Schlüssel erzeugen</button> <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> </div>
</form> </form>
<p class="footer">Hinweis: Für maximale Sicherheit sollten PGPSchlü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> </body>
</html> </html>

View File

@@ -3,7 +3,7 @@
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<title>PGP Schlüssel Ergebnis</title> <title>PGP Schlüssel - Ergebnis</title>
<style> <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} 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} .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}