$ ./cracktest
Enter an empty password or Ctrl-D to quit.
Password: xyz
Bad password: it's WAY too short.
Password: elephant
Bad password: it is based on a dictionary word.
Password: kLu%ziF7
Good password!

9.2.3 Discussion

CrackLib is an offshoot of Alec Muffet's password
cracker, Crack. It is designed to be embedded in other programs, and
hence is provided only as a library (and dictionary). The
FascistCheck function subjects a password to a
variety of tests, to ensure that it is not vulnerable to guessing.

9.2.4 See Also

Learn more about CrackLib at http://www.crypticide.org/users/alecm.

Perl for System Administration
(O'Reilly), section 10.5, shows how to make a
Perl module to use CrackLib.

PAM can use CrackLib to force users to choose good passwords. [Recipe 4.2]