Re: Digest::SHA1 b64digest weirdness



Greg G wrote:

This is really bizzaro.  Here's my code:

use Digest::SHA1;

my $encpw = "{SHA}" . $ctx->b64digest . "=";
print STDERR "{SHA}" . $ctx->b64digest . "=\n";

What gives here? Why are these different? Incidentally, the $encpw one is the correct one.

perldoc Digest::SHA1

says to see also...

perldoc Digest

(Specifically, see the doc for the digest function.)

Ed
.