Anyone know why sha1sum and the following script which uses Digest::SHA1 would generate different output? Am I misusing Digest::SHA1 in some weird way?
#!/usr/bin/perl -w
use Digest;
sub hash_msg {
my $hashed = Digest->new("SHA-1");
$hashed->add($_[0]);
return...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.