On Sat, Dec 15, 2001 at 06:12:53PM +0100, Alson van der Meulen wrote: > > 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 > ;)
Or just ln -sf /usr/bin/openssl /usr/bin/sha1 OpenSSL already checks the name it's invoked under and behaves accordingly. Kris
msg30150/pgp00000.pgp
Description: PGP signature