use strict;
use vars qw($VERSION %MMAP $AUTOLOAD);
-$VERSION = "1.15";
+$VERSION = "1.16";
%MMAP = (
- "SHA-1" => ["Digest::SHA1", ["Digest::SHA", 1], ["Digest::SHA2", 1]],
+ "SHA-1" => [["Digest::SHA", 1], "Digest::SHA1", ["Digest::SHA2", 1]],
"SHA-224" => [["Digest::SHA", 224]],
"SHA-256" => [["Digest::SHA", 256], ["Digest::SHA2", 256]],
"SHA-384" => [["Digest::SHA", 384], ["Digest::SHA2", 384]],
"CRC-16" => [["Digest::CRC", type => "crc16"]],
"CRC-32" => [["Digest::CRC", type => "crc32"]],
"CRC-CCITT" => [["Digest::CRC", type => "crcccitt"]],
+ "RIPEMD-160" => "Crypt::PIPEMD160",
);
sub new
-2006-13-20 Gisle Aas <gisle@ActiveState.com>
+2009-06-09 Gisle Aas <gisle@ActiveState.com>
+
+ Release 1.16.
+
+ Gisle Aas (3):
+ For SHA-1 try Digest::SHA before tryign Digest::SHA1 as suggested by Adam Trickett
+ Support Digest->new("RIPEMD-160") as suggested by Zefram
+ Use 3-arg open for fewer surprises
+
+ Jarkko Hietaniemi (1):
+ Sync up with EBCDIC changes from core perl.
+
+
+
+2006-03-20 Gisle Aas <gisle@ActiveState.com>
Release 1.15.
use vars qw($VERSION @ISA @EXPORT_OK);
-$VERSION = "1.00";
+$VERSION = "1.16";
@ISA = qw(Exporter);
@EXPORT_OK = qw(digest_file_ctx digest_file digest_file_hex digest_file_base64);
my $file = shift;
croak("No digest algorithm specified") unless @_;
local *F;
- open(F, $file) || croak("Can't open '$file': $!");
+ open(F, "<", $file) || croak("Can't open '$file': $!");
binmode(F);
my $ctx = Digest->new(@_);
$ctx->addfile(*F);