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

Verbose / entropy information incorrect when specifying length #83

Closed redacted closed 3 years ago

redacted commented 6 years ago

(External report)

when you run the app with -V -i (verbose, interactive) it shows entropy for 6 words first, and THEN asks user how many words he wants. i think it should be another way around...

artur@elitebook ~ $ xkcdpass -Vi
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 6 word password from this list will have roughly 91 (15.22 * 6) bits of entropy,
assuming truly random word selection.
Enter number of words (default 6): 8
Generated:  spaceman repulsion prelatic laconic quart escapist aortic waxen
Accept? [yN] y
spaceman repulsion prelatic laconic quart escapist aortic waxen