On Sat, Dec 15, 2001 at 11:58:14AM +0000, Dominic Marks wrote:
> On Saturday 15 December 2001 11:34 am, Mike Wiacek wrote:
> > We currently have a MD5 driver, but no SHA1 driver, even though
> > we have SHA1 as part of libmd. So I took md5.c from
> > /usr/src/sbin/md5 and made sha1.c as well as a respective man page.
> > Attached is the source file, the manual page for it, as well as a
> > makefile.
> >
> > Hope this is useful and makes its way into the tree. Md5 has some
> > questionable attacks against it, and Schneier claims that
> > sha is resillient to such attacks.
> >
> > mike
> 
> Why not have one program for all the supported hash algorithms as 
> opposed to individual ones for each (md5, sha1) ?
> 
> You could use something like:
> 
> > hash -a md5 /some/file
> > hash -a sha1 /some/other/file
It's called openssl.
openssl dgst -md5
openssl dgst -sha1
...

You could write a wrapper for this, or just type the 14 extra characters
;)

HTH,
Alson

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to