in reply to Md5 password authentication

You might want to look at shadow passwd for some info as well.

neophyte

Replies are listed 'Best First'.
RE: Re: Md5 password authentication
by vaevictus (Pilgrim) on Nov 13, 2000 at 22:33 UTC
    use Crypt::PasswdMD5; sub my_md5_crypt { my $salt; for(0..7) { $salt .= ('.', '/', 0..9, 'A'..'Z','a'..'z')[rand 64]; } my $pass = shift; #clear text password return unix_md5_crypt($pass, '$1$' . $salt . '$'); }
    I've tried this, but I get different results when i put in the password and the given salt... They don't match up to the results in the main section.