Hi

I fI am not making a mistake there is difference between md5 checksm and md5
encryption. You could use crypt() perhaps...

Not very sure...

Bye
  Shridhar

Sandip Bhattacharya wrote:

> Redhat by default uses md5 encrypted shadow passwords. Now we ran into a
> particular problem in which we have to read the shadow file and
> authenticate users.(No we don't want to use the passwd C libraries)
>
> I noticed a weird thing. Isn't MD5 strings supposed to be in
> hexadecimal? The shadow file passwords are not so.
>
> I tried a small experiment. I put the password of a known person in a text
> file (without newline) and run md5sum on it. The hash had nothing in
> common with the /etc/shadow equivalent. What am i doing wrong?


----------------------------------------------
The mailing list archives are available at
http://lists.linux-india.org/cgi-bin/wilma/LIH

Reply via email to