mirror of
https://github.com/wneessen/apg-go.git
synced 2024-11-22 22:00:49 +01:00
Bump version to 0.4.0-dev
This commit is contained in:
parent
27d05f497b
commit
e773db2ee7
1 changed files with 4 additions and 4 deletions
|
@ -13,7 +13,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
const VersionString string = "0.3.3"
|
const VersionString string = "0.4.0-dev"
|
||||||
|
|
||||||
// Help text
|
// Help text
|
||||||
const usage = `apg-go // A "Automated Password Generator"-clone
|
const usage = `apg-go // A "Automated Password Generator"-clone
|
||||||
|
@ -64,7 +64,7 @@ func main() {
|
||||||
pwLength := config.GetPwLengthFromParams(&cfgObj)
|
pwLength := config.GetPwLengthFromParams(&cfgObj)
|
||||||
pwString, err := random.GetChar(&charRange, pwLength)
|
pwString, err := random.GetChar(&charRange, pwLength)
|
||||||
if err != nil {
|
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 {
|
switch cfgObj.OutputMode {
|
||||||
|
@ -72,7 +72,7 @@ func main() {
|
||||||
{
|
{
|
||||||
spelledPw, err := spelling.String(pwString)
|
spelledPw, err := spelling.String(pwString)
|
||||||
if err != nil {
|
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)
|
fmt.Printf("%v (%v)\n", pwString, spelledPw)
|
||||||
break
|
break
|
||||||
|
@ -85,7 +85,7 @@ func main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if cfgObj.CheckHibp {
|
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)
|
pwnObj, _, err := hc.PwnedPassApi.CheckPassword(pwString)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("unable to check HIBP database: %v", err)
|
log.Printf("unable to check HIBP database: %v", err)
|
||||||
|
|
Loading…
Reference in a new issue