redacted / XKCD-password-generator

Generate secure multiword passwords/passphrases, inspired by XKCD
BSD 3-Clause "New" or "Revised" License
1.32k stars 185 forks source link

Interactive and specified number conflict #84

Closed redacted closed 3 years ago

redacted commented 6 years ago

(External report)

when using -n... ..even though i already told the app how many words i'd like - it still asks (and says "default 6") which is not true, cause hitting ENTER will default to 8 in this case.

i would just skip the question about number of words in case user used "-n" parameter already...

artur@elitebook ~ $ xkcdpass -n 8 -i -V
The supplied word list is located at /usr/lib/python3/dist-packages/xkcdpass/static/default.txt.
Your word list contains 38271 words, or 2^15.22 words.
A 8 word password from this list will have roughly 121 (15.22 * 8) bits of entropy,
assuming truly random word selection.
Enter number of words (default 6):
Generated:  categoric shindig stolid poundage Agatha sharply sheltered sallow
Accept? [yN] y
categoric shindig stolid poundage Agatha sharply sheltered sallow