Subject: Re: Where is "htdigest"?
To: Zbigniew Baniewski <zb@ispid.com.pl>
From: Daniel Horecki <shinden@linux.pl>
List: netbsd-users
Date: 05/22/2007 11:07:25
2007/5/22, Zbigniew Baniewski <zb@ispid.com.pl>:
> On Mon, May 21, 2007 at 09:30:55PM -0500, Jeremy C. Reed wrote:
>
> > > echo -n 'user:realm:' > /etc/lighttpd/user.htdigest
> > > echo 'user:realm:password' | md5sum | cut -b -32 >> /etc/lighttpd/user.htdigest
> >
> > Note that the second echo probably needs an -n also. Or your md5 digest
> > will include the newline.
>
> Can't see any difference - with, or without "-n".

I can:
sh@tatooine:~/ > echo 'user:realm:password' | md5 | cut -b -32
339cb70ecc2ba8dc8f3e06378955b177
sh@tatooine:~/ > echo -n 'user:realm:password' | md5 | cut -b -32
ebbc0ff9a121dbb6789bbe5f82174fa0
sh@tatooine:~/ >


-- 
Daniel 'Shinden' Horecki
http://morr.pl