v0.3.2: parameter switchablity, HIBP and better README
New features
HIBP support
Even though the generated passwords are generated in a secure way, there is a minimal chance, that the same password was used by someone before and this password was part of a leak. If you want to be on the safe side, you can now use the -p
parameter, to have your newly generated password against the HIBP (https://haveibeenpwned.com) database. This feature is disabled by default, since it requires internet access and also the API call might take ~500ms to 1sec.
Bug fixes
Parameter switchability
The previous behavior was wrong in a way, that default values like "use lower case" defaulted to true and using the -L
param would not set it to false, but simple keep the true default which made the parameter useless. Now all parameters still use the same defaults but setting the corresponding flag on the CLI will negate the default, so using -L
on the CLI would set "useLowerCase" to false instead of the default of true.
Enhancements
The README was lacking some usage examples. As requested in #25, the README has been updated with several examples on the different parameters.
Contributions
Thanks to @smortex fixing an oversight in the usage output (#24)