[Techtalk] Verify MD5-Hashed Passwords in Perl?

jenn at simegen.com jenn at simegen.com
Fri Sep 14 06:54:49 EST 2001


Kai MacTane wrote:

> Hello. I need to get a Perl script to take in a username and password, 
> read /etc/shadow (which is storing the passwords as MD5 hashes, rather 
> than crypted), and verify that the user's password actually does match.

If it's not essential that it's a Perl script, why not consider making
your script work with the relevent PAM modules instead? PAM handles
/etc/shadow and md5 hashes...



Jenn V.
-- 
     "Do you ever wonder if there's a whole section of geek culture
             you miss out on by being a geek?" - Dancer.

jenn at simegen.com     Jenn Vesperman     http://www.simegen.com/~jenn/





More information about the Techtalk mailing list