[COMP] Re: perl crypt() and MD5?


----- Original Message ----- 
From: <weez@xxxxxxxxxxxxx>
To: <computers@xxxxxxxxxxxxx>
Sent: Tuesday, November 20, 2001 1:06 PM
Subject: [COMP] Re: perl crypt() and MD5?


[...]
> >       if (unix_md5_crypt($word, $salt) eq $user) {
> >           print "$line[0]: yes\n";
> 
> MD5-based crypt() uses an 8-character salt.
> 

Ahhh ... I see it now

/me just got enlightened  :)

Thanks for that, you just made my week!

[...]
> > to change their passwds via a webpage?
> 
> Locking the file properly may cause you issues -- I'd suggest not doing
> it, unless there's some cool way of doing it through PAM...
> 

hrmmm ... any reason why I couldn't get away with
flock() while it does it's work?  Either that, or
was thinking about calling chpasswd from the script
(after verifying they know their old password).

Problem being that I ofcourse know less about PAM
than MD5.  Some reading is in order, know of any good
sites?

Thanks again for the tip, much appreciated.  :)

-- 
Mark



Other related posts: