bbusschots / hsxkpasswd

A Perl module and terminal command for generating secure memorable passwords inspired by the fabulous XKCD web comic and Steve Gibson's Password Hay Stacks. This is the library that powers www.xkpasswd.net
http://www.bartb.ie/xkpasswd
BSD 2-Clause "Simplified" License
278 stars 48 forks source link

command line tool does not distil configs before validation when using -c #18

Closed bbusschots closed 8 years ago

bbusschots commented 9 years ago

When using the command line to test function (-t flag), the config is distilled, then validated, allowing keys that should not be present to be ignored.

When trying to use a config file with the -c flag, the behavior is not the same - configs are not distilled before being validated, so a config can pass -t, but fail when used with -c.

The -c flag needs to be updated to behave the same as the -t flag.

bbusschots commented 8 years ago

Resolved with commit https://github.com/bbusschots/hsxkpasswd/commit/83b713ddfc7fcd9fae90acd4da9709473ab66ab0