mirror of
https://github.com/wneessen/apg-go.git
synced 2024-11-12 17:02:56 +01:00
Add mobile-friendly character grouping option
The update adds a new command line flag '-g' for activating mobile-friendly character grouping in password generation (Algo: 1). Enabling this option can make the passwords more readable, but it also comes with the caveat of possibly reducing the password's entropy.
This commit is contained in:
parent
54ab50a517
commit
0404b68489
1 changed files with 4 additions and 0 deletions
|
@ -36,6 +36,7 @@ func main() {
|
|||
flag.BoolVar(&complexPass, "C", false, "")
|
||||
flag.StringVar(&config.ExcludeChars, "E", "", "")
|
||||
flag.Int64Var(&config.FixedLength, "f", 0, "")
|
||||
flag.BoolVar(&config.MobileGrouping, "g", false, "")
|
||||
flag.BoolVar(&humanReadable, "H", false, "")
|
||||
flag.BoolVar(&config.SpellPassword, "l", false, "")
|
||||
flag.BoolVar(&lowerCase, "L", false, "")
|
||||
|
@ -225,6 +226,9 @@ Flags:
|
|||
-f LENGTH Fixed length of the password to be generated (Ignores -m and -x)
|
||||
- Note: Due to the way the pronounceable password algorithm works,
|
||||
this setting might not always apply
|
||||
-g When set, mobile-friendly character grouping will be enabled in Algo: 1
|
||||
- Note: Grouping characters in random passwords makes them much
|
||||
more predictable and lowers the entropy of the generated password.
|
||||
-n NUMBER Amount of password to be generated (Default: 6)
|
||||
- Note: Does not apply to binary mode (Algo: 3)
|
||||
-E CHARS List of characters to be excluded in the generated password
|
||||
|
|
Loading…
Reference in a new issue