From owner-freebsd-hackers Sat Dec 15 9:18:59 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from citusc17.usc.edu (citusc17.usc.edu [128.125.38.177]) by hub.freebsd.org (Postfix) with ESMTP id 5451B37B417 for ; Sat, 15 Dec 2001 09:18:55 -0800 (PST) Received: (from kris@localhost) by citusc17.usc.edu (8.11.6/8.11.4) id fBFHIr491330; Sat, 15 Dec 2001 09:18:53 -0800 (PST) (envelope-from kris) Date: Sat, 15 Dec 2001 09:18:52 -0800 From: Kris Kennaway To: Alson van der Meulen Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: sha1 program Message-ID: <20011215091852.A91288@citusc17.usc.edu> References: <20011215062918.F74051-400000@siteintegrity.net> <20011215181253.U10171@md2.mediadesign.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="wRRV7LY7NUeQGEoC" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011215181253.U10171@md2.mediadesign.nl>; from alm@flutnet.org on Sat, Dec 15, 2001 at 06:12:53PM +0100 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --wRRV7LY7NUeQGEoC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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=20 > > opposed to individual ones for each (md5, sha1) ? > >=20 > > You could use something like: > >=20 > > > hash -a md5 /some/file > > > hash -a sha1 /some/other/file > It's called openssl. > openssl dgst -md5 > openssl dgst -sha1 > ... >=20 > 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 --wRRV7LY7NUeQGEoC Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE8G4X8Wry0BWjoQKURAp8AAJwKZkY5p//fSsM+3pv/2M4j4c2eDwCg0czC P1WxYFe6AEwI69ikO+Y/0TQ= =8u6B -----END PGP SIGNATURE----- --wRRV7LY7NUeQGEoC-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message