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