diff --git a/main.go b/main.go index db498eb..fc57978 100644 --- a/main.go +++ b/main.go @@ -9,7 +9,8 @@ import ( const ( passwordLength = 32 - chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!?§$%&=#+<>-:,.;_*@" + chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" + //chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!?$%&=#+<>-:,.;_*@" ) func generatePassword() string { @@ -109,110 +110,149 @@ func helpHandler(w http.ResponseWriter, r *http.Request) { func webHandler(w http.ResponseWriter, r *http.Request) { password := generatePassword() - html := fmt.Sprintf( - ` - - - Passwort-Generator - - - - - -
- ? -

Generiertes Passwort

-
%s
-
- - -
-
- - `, - password, - ) +html := fmt.Sprintf( + ` + + + Passwort-Generator + + + + +
+ ? +

Generiertes Passwort

+
%s
+
+ + +
+
✓ Kopiert!
+
+ + + `, + password, +) w.Header().Set("Content-Type", "text/html; charset=utf-8") fmt.Fprint(w, html) diff --git a/password-generator b/password-generator deleted file mode 100755 index 1cca9c6..0000000 Binary files a/password-generator and /dev/null differ