From 9277e83fd49590757c63b52469ecbdb5d9253687 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Sat, 17 Apr 2021 11:04:14 +0200 Subject: [PATCH] v0.3.1: New password length behaviour To address issue #13, the password length behaviour of the original APG has been reproduced. Previously, when a minLength of 5 and a maxLength of 10 was given, apg-go se the pwLength to the preferred maxLength. With v0.3.1 it will choose a random length between minLength and maxLength instead, same as the original C-lang apg did. For this the minLength has been defaulted to a sane value of 12 (instead of the 8 of the original apg). The default for maxLength stayed at 20. Also the default number of generated passwords has been changed from 1 to 6, to replicate the behaviour of the original apg. --- .idea/workspace.xml | 52 +++++++++++++++++++++++---------------------- README.md | 4 ++-- apg_test.go | 42 +++++++++++++++++++++++++++++++++++- config.go | 19 +++++++++-------- go.mod | 2 +- 5 files changed, 81 insertions(+), 38 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 42cea83..88b69dd 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -6,8 +6,11 @@ - - + + + + +