I am currently struggling with generating an md5 compatible password for the db with new users. Does your snippet do that? If so, I am very interested. thnx,
vec ----- Original Message ----- From: "Mattt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 30, 2002 4:30 PM Subject: Re: md5 passwords in database > On Wed, 2002-07-31 at 08:07, Dave Logan wrote: > > > > # echo -n "password" | md5sum > > 5f4dcc3b5aa765d61d8327deb882cf99 - > > > That's the problem - you need to use a 12-char salt with '$1$' as the > first three chars. $1$ is the magic that denotes an MD5'd password, and > the salt used to decrypt the pass is the 8-char string b/w the 3rd and > 8th chars inclusively. I don't think md5sum will do what you need. > > I wrote a bit of php to do our encryption/checking - if you're really > stuck, I can send you a snippet... > > -- > Cheers, > Mattt. icq : 117539757 > Network and Tech Guy, www1 : http://www.pulse.nq4u.net > Expressnet. www2 : http://www.expressnet.net.au > [EMAIL PROTECTED] jabber: [EMAIL PROTECTED] > > > - > List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html > - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
