This commit is contained in:
darwincereska
2026-04-01 21:42:00 -04:00
parent 042bfac734
commit 757758293f

23
main.go
View File

@@ -26,17 +26,18 @@ func main() {
os.Exit(1)
}
// Fetch user input
fmt.Print("Enter your password: ")
fmt.Scanf("%s", &input)
fmt.Println(input)
for {
// Check users password
message, err := password.Check(input, commonWords, commonPasswords)
if err != nil {
fmt.Printf("ERROR: %v\n", err)
os.Exit(1)
// Fetch user input
fmt.Print("Enter your password: ")
fmt.Scanf("%s", &input)
fmt.Println(input)
// Check users password
message, err := password.Check(input, commonWords, commonPasswords)
if err != nil {
fmt.Printf("ERROR: %v\n", err)
}
fmt.Println(message)
}
fmt.Println(message)
}