logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Crypt::Cracklib - Perl interface to Alec Muffett's Cracklib.

Author

       Dan Sully <daniel@cpan.org>

Bugs

       Please file bugs at https://github.com/dsully/perl-crypt-cracklib/issues

Description

       This is a simple interface to the cracklib library.

Functions

       •   fascist_check( $password, [ $dictionary ] )

           Returns a string value. Either an error, or "ok".

       •   bad_pass( $password, [ $dictionary ] )

           Returns a non-empty string on success or an empty string on failure.

       •   check( $password, [ $dictionary ] )

           Returns a true or false value if the password is acceptable or not.

Name

       Crypt::Cracklib - Perl interface to Alec Muffett's Cracklib.

See Also

perl(1).

perl v5.40.0                                       2024-10-20                                      Cracklib(3pm)

Synopsis

         use Crypt::Cracklib;

         my $reason = fascist_check($password, $dictionary);

         print "Ok"  if  check($password, $dictionary);
         print "Bad" if !check($password, $dictionary);

See Also