1Cracklib(3) User Contributed Perl Documentation Cracklib(3)
2
3
4
6 Crypt::Cracklib - Perl interface to Alec Muffett's Cracklib.
7
9 use Crypt::Cracklib;
10
11 my $reason = fascist_check($password, $dictionary);
12
13 print "Ok" if check($password, $dictionary);
14 print "Bad" if !check($password, $dictionary);
15
17 This is a simple interface to the cracklib library.
18
20 · fascist_check( $password, [ $dictionary ] )
21
22 Returns a string value. Either an error, or "ok".
23
24 · bad_pass( $password, [ $dictionary ] )
25
26 Returns a non-empty string on success or an empty string on
27 failure.
28
29 · check( $password, [ $dictionary ] )
30
31 Returns a true or false value if the password is acceptable or not.
32
34 Dan Sully <daniel@cpan.org>
35
37 Please file bugs at
38 https://github.com/dsully/perl-crypt-cracklib/issues
39
41 perl(1).
42
43
44
45perl v5.28.1 2019-02-02 Cracklib(3)