DOKK / manpages / debian 12 / libcrypt-cracklib-perl / Crypt::Cracklib.3pm.en
Cracklib(3pm) User Contributed Perl Documentation Cracklib(3pm)

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

  use Crypt::Cracklib;
  my $reason = fascist_check($password, $dictionary);
  print "Ok"  if  check($password, $dictionary);
  print "Bad" if !check($password, $dictionary);

This is a simple interface to the cracklib library.

  • 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.

Dan Sully <daniel@cpan.org>

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

perl(1).

2022-10-19 perl v5.36.0