in reply to Comparing current password with one generated through Crypt::PasswdMD5
Update: It's probably better to let crypt extract the salt rather than trying to do it yourself. Just use> perl -e 'print crypt("foobaz", q[$1$1234567890$]), "\n"' $1$12345678$ykZ52jdThSTvvsWlFFrxg0
crypt($current, $info[1])
|
|---|