From e773db2ee7ed864998ca3f6b0d40fe4149a7d811 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Thu, 23 Sep 2021 09:35:54 +0200 Subject: [PATCH] Bump version to 0.4.0-dev --- cmd/apg/apg.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/apg/apg.go b/cmd/apg/apg.go index a7a10c0..86e966c 100644 --- a/cmd/apg/apg.go +++ b/cmd/apg/apg.go @@ -13,7 +13,7 @@ import ( "time" ) -const VersionString string = "0.3.3" +const VersionString string = "0.4.0-dev" // Help text const usage = `apg-go // A "Automated Password Generator"-clone @@ -64,7 +64,7 @@ func main() { pwLength := config.GetPwLengthFromParams(&cfgObj) pwString, err := random.GetChar(&charRange, pwLength) if err != nil { - log.Fatalf("getRandChar returned an error: %q\n", err) + log.Fatalf("error generating random character range: %s\n", err) } switch cfgObj.OutputMode { @@ -72,7 +72,7 @@ func main() { { spelledPw, err := spelling.String(pwString) if err != nil { - log.Fatalf("spellPasswordString returned an error: %q\n", err.Error()) + log.Fatalf("error spelling out password: %s\n", err) } fmt.Printf("%v (%v)\n", pwString, spelledPw) break @@ -85,7 +85,7 @@ func main() { } if cfgObj.CheckHibp { - hc := hibp.New(hibp.WithHttpTimeout(time.Second * 2)) + hc := hibp.New(hibp.WithHttpTimeout(time.Second*2), hibp.WithPwnedPadding()) pwnObj, _, err := hc.PwnedPassApi.CheckPassword(pwString) if err != nil { log.Printf("unable to check HIBP database: %v", err)