Command-line implementation of Dropbox's zxcvbn library
Written in Perl. You need Perl installed.
Have CPAN installed on your computer, which is Perl's module installer. On a Mac or Ubuntu, simply type cpan
to see a nice long paragraph about what CPAN is and how to install it. Type "yes" and hit return. If you see a cpan>
prompt, then CPAN is installed and hit CTRL-C to go back to the command-line prompt.
Then, to install the Perl zxcvbn library via CPAN,
sudo perl -MCPAN -e 'CPAN::Shell->force( qw( install Data::Password::zxcvbn ))'
- Copy the contents of my
zxcvbn
script into your~/bin
directory. chmod 755 ~/bin/zxcvbn
on the command-line to make it executable.- Then just run
~/bin/zxcvbn
on the command-line. It will wait until you type or paste your password. Press enter to see the resulting password strength. - Add ~/bin to your path, so you can just type
zxcvbn
at any time.