[OT] Programmatically converting a UNIX passwd hash to an MD5hash?

Matthew Keller kellermg at potsdam.edu
Wed Sep 20 18:26:04 GMT 2000

Steve Langasek wrote:
> It's not possible to convert a standard crypt() hash to an MD5 hash, any more
> than it's possible to convert a crypt() hash to an NTLM hash.  However, it's
> easy enough to add a hook to a program so that, after verifying that the user
> has entered the correct password, the password file is updated with the md5
> equivalent.  RedHat may leverage this, although I haven't seen it -- AFAIK,
> the only thing they do is allow you to specify that all *new* passwords set
> are encrypted with md5.

	Thank you all for your replies. After examining pam_pwdb after some
poking, I've found that RH doesn't "upgrade" the hashes, it merely traps
new password changes and "upgrades" them. 


 Matthew Keller
 WebMaster & Lead Programmer/Analyst
 Distributed Computing/Telemedia
 Information Services Division
 State University of New York at Potsdam
 Website: http://mattwork.potsdam.edu/
 PGP: http://mattwork.potsdam.edu/crypto/
 Webcam:  http://webcam.mattwork.potsdam.edu:85/

More information about the samba-ntdom mailing list