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

Feature request : use multiple wordfiles #110

Closed FrankySnow closed 3 years ago

FrankySnow commented 5 years ago

Hello, it would be nice to generate passphrases based on multiple wordfiles, providing a much higher entropy.

Even nicer : specify how many words to use from which wordfile.

redacted commented 5 years ago

Great idea - I'll look into this as soon as I have some time!

EvansJahja commented 4 years ago

I think if only -w - allows reading from STDIN, cat a.txt b.txt | xkcdpass -w - would work. But it seems that it doesn't support STDIN yet.

PrivacyStan commented 3 years ago

I've got a specific use case where I need to generate passphrases based on multiple word files. User selects 1,2, or even 3 custom word files. The passphrase is generated, mixing in general word files where needed. Any progress or plans for this feature?

ghyde commented 3 years ago

@PrivacyStan You can always concatenate multiple word files to generate a new word file.

cat a.txt b.txt c.txt | sort -u > custom.txt
xkcdpass -w custom.txt
redacted commented 3 years ago

Release 1.19.0 has initial support for multiple word files, when the argument is a comma-separated list > python xkcd_password.py -w static/legacy,static/fr-freelang,static/fin-kotus conductor enjeu nilellä derby malaise ruskistaa

If you have any feedback on the current implementation please let me know!