crypt and passwords

David Kramer david at thekramers.net
Fri Aug 22 02:12:27 EDT 2003


I once knew the magic incantations for being able to verify a passwd by 
passing the salt from the encrypted password and the unencrypted password to 
crypt() to see if you got a string matching the encrypted password.  I'm 
trying to write a small test program to do this, but I am not getting the 
encrypted string back.

My first guess is this has to do with /etc/shadow passwords now using MD5, but 
according to the crypt man page, it should handle that.

This is Red Hat 7.3.
 
-------------------------------------------------------------------
DDDD   David Kramer                   http://thekramers.net
DK KD  "This must be Thursday", said Arthur to himself, sinking low
DKK D  over his beer.  "I never could get the hang of Thursdays."
DK KD  
DDDD             Douglas Adams, "Hitchhiker's Guide to the Galaxy".



More information about the Discuss mailing list