in reply to Re: Md5 password authentication
in thread Md5 password authentication
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.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 . '$'); }
|
|---|