From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <98649401005208.tru64-unix-managers.marc@archive.invalid> From: lynn () stsci ! edu (Lynn Bogovich) Date: Thu, 05 Apr 2001 18:05:32 +0000 To: tru64-unix-managers Subject: SUMMARY: Looking for md5sum X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=98649401005208 Original Question: =================== > Hi, > > I am looking for the binaries for md5sum for Tru64 v5.0a and v5.1. > Any hints would be appreciated. > > Thanks. > Lynn Bogovich Responses: ========== From: "Anthony A. D. Talltree" Get gnu textutils from ftp:prep.ai.mit.edu/pub/gnu and build yer own. --------- From: Denise Dumas If you're just looking for a way to generate an MD5 checksum, the easy way is to use perl. This example handles sha1 and md5. Regards, Denise Dumas Tru64 UNIX Security Obtain two additional perl modules, available from http://www.cpan.org/ Digest-MD5-2.13.tar.gz Digest-SHA1-2.00.tar.gz Install each module: unzip, untar into self-named directory cd Digest-MD5-2.13 or Digest-SHA1-2.00 >perl Makefile.PL >make >make test >make install Use the following script: #!/usr/bin/perl # # generates cryptographic checksums using two algorithms # use Digest::MD5; use Digest::SHA1; my $file = shift; open(FILE, $file) or die "Can't open '$file': $!"; binmode(FILE); $md5 = Digest::MD5->new; $sha1 = Digest::SHA1->new; while () { $md5->add($_); $sha1->add($_); } close(FILE); print $md5->hexdigest," ","$file"," ","MD5\n"; print $sha1->hexdigest," ","$file"," ","SHA1\n"; -------------------- From: system administration account Compile it yourself, from source. It's a very simple program. The same binary will work on both 5.0A and 5.1; just compile it on the former. ======================================= Thanks for all the responses. Lynn Bogovich Sr UNIX System Administrator Space Telescope Science Institute (v)-410-338-4523 (f)-410-338-5075 lynn@stsci.edu