in reply to Re: MD5 Hash
in thread MD5 Hash
sub md5sum{ my $file = shift; my $digest = ""; eval{ open(FILE, $file) or die "Can't find file $file\n"; my $ctx = Digest::MD4->new; $ctx->addfile(*FILE); $digest = $ctx->hexdigest; close(FILE); }; if($@){ print $@; return ""; } return $digest; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: MD5 Hash
by GrandFather (Saint) on Dec 01, 2009 at 22:20 UTC | |
|
Re^3: MD5 Hash
by Karger78 (Beadle) on Dec 02, 2009 at 14:44 UTC |