---
name: "Crypt::Cracklib"
section: "3pm"
platform: "linux"
package: "libcrypt-cracklib-perl"
version: "1.7-4+b4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Crypt::Cracklib"
---

# Crypt::Cracklib(3pm)

Perl interface to Alec Muffett's Cracklib.

## NAME

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

## SYNOPSIS

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

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

## AUTHOR

Dan Sully \<daniel@cpan.org\>

## BUGS

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

## SEE ALSO

[**perl**(1)](/perl/1.md).
