Authen...ssword(3pm)

πŸ“¦
version 0.5 Β· 6 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

πŸ’– Authen::Simple::Password(3pm) πŸ’–

okay bestie, so this is a page from the User Contributed Perl Documentation β€” it's the manual for Authen::Simple::Password, and honestly? it's giving "small module, big job." it does one thing and it does it slay. let's get into it 🫢


✨ NAME ✨

Authen::Simple::Password β€” Simple password checking. that's it. that's the whole vibe. no cap.


🌸 SYNOPSIS 🌸

if ( Authen::Simple::Password->check( $password, $encrypted ) ) {
    # OK
}

like... look at that. one call. it just works. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

it provides a simple way to verify passwords. literally that's the description. it's short because the module knows what it is. main character energy, no filler.


πŸŽ€ METHODS πŸŽ€

  • check( $password, $encrypted ) β€” returns true on success and false on failure. that's the whole API. she's lowkey minimal and highkey iconic for it.

πŸ”₯ SUPPORTED PASSWORD FORMATS πŸ”₯

this is the part where she shows OFF. look at all these formats she can handle. obsessed. 😭

  • Plain β€” plaintext. no encryption, just vibes. yes bestie, raw.
  • Crypt β€” that's crypt(3). the classic.
  • Crypt Modular
    • $1$ β€” MD5-based password algorithm
    • $apr$ β€” MD5-based password algorithm, Apache variant
  • LDAP
    • {CLEARTEXT} β€” Plaintext.
    • {CRYPT} β€” Uses crypt(3)
    • {MD5} β€” MD5 algorithm
    • {SMD5} β€” Seeded MD5 algorithm
    • {SHA} β€” SHA-1 algorithm
    • {SSHA} β€” Seeded SHA-1 algorithm
  • MD5 algorithm β€” encoded as binary, Base64 or hexadecimal. three fits, one algorithm. she contains multitudes ✨
  • SHA-1 algorithm β€” encoded as binary, Base64 or hexadecimal.
  • SHA-2 256 algorithm β€” encoded as binary, Base64 or hexadecimal.

πŸ’œ SEE ALSO πŸ’œ

go read those too. do it for her. 🧚


πŸ‘‘ AUTHOR πŸ‘‘

Christian Hansen <chansen@cpan.org> β€” thank u for ur service, legend 🌈


This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.

free as in freedom, bestie. go wild (respectfully). πŸ“


and that's the page!! this one's from perl v5.32.0, dated 2021-01-02, and the manual's got that cute abbreviated name Authen...ssword(3pm) β€” iykyk πŸ’– mwah, go check some passwords responsibly 🌸

πŸ“¦ where this page comes from