SUMMARY: Looking for md5sum

From: Lynn Bogovich <lynn_at_stsci.edu>
Date: Thu, 05 Apr 2001 14:05:32 -0400 (EDT)

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" <aad_at_talltree.net>

Get gnu textutils from ftp:prep.ai.mit.edu/pub/gnu and build yer own.


---------
From: Denise Dumas <dumas_at_zk3.dec.com>


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 (<FILE>) {
    $md5->add($_);
    $sha1->add($_);
}
close(FILE);
print $md5->hexdigest," ","$file"," ","MD5\n";
print $sha1->hexdigest," ","$file"," ","SHA1\n";

--------------------
From: system administration account <sysadmin_at_astro.su.se>

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_at_stsci.edu
Received on Thu Apr 05 2001 - 18:07:26 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:42 NZDT