Cracklib(3pm)
β¨ NAME β¨
Crypt::Cracklib β bestie, it's a Perl interface to Alec Muffett's Cracklib. That's the whole vibe. π
πΈ SYNOPSIS πΈ
use Crypt::Cracklib;
my $reason = fascist_check($password, $dictionary);
print "Ok" if check($password, $dictionary);
print "Bad" if !check($password, $dictionary);
Likeβ¦ look at it. Four lines. She's gorgeous, she's tiny, she does her job. π
π¦ DESCRIPTION π¦
Okay so literally: this is a simple interface to the cracklib library. That's it. No lore, no secret menu, no twenty-page backstory. She's a thin wrapper and she knows she's a thin wrapper. Main character energy, zero notes. π
π FUNCTIONS π
π fascist_check( $password, [ $dictionary ] )
Returns a string value. Either an error, or "ok".
No cap, the name is doing a LOT here, but it's the one that actually tells you why a password got rejected instead of just dunking on you silently. The $dictionary is optional, so you can pass it or lowkey let her figure it out. π«Ά
π bad_pass( $password, [ $dictionary ] )
Returns a non-empty string on success or an empty string on failure.
Yes bestie, the naming is unhinged β "success" here means the password is bad. Read it twice. I had to. π
π check( $password, [ $dictionary ] )
Returns a true or false value if the password is acceptable or not.
This is the simple one. True = it's fine. False = it's giving "password123" and we need to talk. π
π AUTHOR π
Dan Sully <daniel@cpan.org> β thank you for your service, king. π
π BUGS π
Found something cursed? Please file bugs at https://github.com/dsully/perl-crypt-cracklib/issues. Don't suffer in silence, that's not the move. fr fr. π
β SEE ALSO β
perl(1). That's the whole list. Go read it, it's iconic. π
Okay bye bestie, this was Cracklib(3pm) from perl v5.42.3, dated 2026-08-19 β User Contributed Perl Documentation, and yes she ate. Periodt. π¦β¨
π¦ where this page comes from
- ubuntu stonking: libcrypt-cracklib-perl 1.7-4build6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms