b64digest#
Finish the message and return its digest, then reset the object to the empty message.
Also available as Digest::SHA1::digest, Digest::SHA1::hexdigest.
digest returns the 20 raw bytes, hexdigest 40 lowercase hex digits, b64digest 27 Base64 characters without the = padding.
Synopsis#
my $ctx = Digest::SHA1->new;
$ctx->add('abc');
print $ctx->hexdigest, "\n"; # a9993e36...
print $ctx->hexdigest, "\n"; # da39a3ee..., the empty message