Sandy and Steve, thanks for your responses. I noticed that I don't have sha1sum in Debian. Dunno why. I did find an implementation of SHA-1 in RFC 3174, so I used that.
Sam On Fri, 15 Mar 2002, Sandy Herring wrote: > On Fri, 15 Mar 2002, Steve Beattie wrote: > > On Fri, Mar 15, 2002 at 05:27:41PM -0800, Sandy Herring wrote: > > > On Fri, 15 Mar 2002, Sam wrote: > > > > I am implementing the Secure Hash Algorithm (SHA-1) for a class > > > > assignment. Can > > > > someone point me to a Linux utility that calculates SHA which I may use > > > > for reference. > > > > Thanx, > > > > > > > > Sam > > > > > > /usr/bin/sha1sum > > > > > > (man -k SHA | grep SHA) > > > > Not sure what package that's a part of, but a widely distributed > > alternative would be openssl's sha1 command, used like so: > > > > [kryten steve]$ openssl sha1 < docs/quotes > > dfdef18664e49005391b44e8fb75751a2f46702b > > It's part of textutils and included in the RH7.2 release. > > [EMAIL PROTECTED] root]# rpm -q --file /usr/bin/sha1sum > textutils-2.0.14-2 > > `man sha1sum' shows... > > AUTHOR > Written by Ulrich Drepper and Scott Miller. > > REPORTING BUGS > Report bugs to <bug-textutils@gnu.org>. > > Sandy > -- > Sandy Herring, RHCE o [EMAIL PROTECTED] > Peck of Pickled Pisces __ o http://herring.org/ > UNIX or Web authoring questions? |\/ o\ o http://herring.org/finger.html > =>http://herring.org/techie.html |/\__/ http://herring.org/GnuPGpubkey > *sh, Perl, C, VBA, PICK Assembler, Data/Basic, PROC & profanity spoken here. -- Satyajit Grover http://www.cs.pdx.edu/~satyajit/