NAME
Acrux::Digest - Acrux Digest base class
SYNOPSIS
use parent qw/Acrux::Digest/;
DESCRIPTION
Acrux Digest base class
new
my $provider = Acrux::Digest::Provider->new();
Returns Digest Provider instance
ATTRIBUTES
This class implements the following attributes
data
my $data = $provider->data;
$provider = $provider->data({foo => 'bar'});
Data structure to be processed
METHODS
This class implements the following methods
add
$provider->add("data", "and another data", ...);
Add data to digest calculate. All specified data of array will be concatenated to one pool of data
addfile
$provider->addfile("/path/of/file");
Add file content to data pool
$provider->addfile(*STDIN);
Add STDIN content to data pool
digest
my $digest = $provider->digest;
Returns result digest (as is)
hexdigest
my $digest = $provider->hexdigest;
Returns sesult digest as hex string
b64digest, base64digest
my $digest = $provider->b64digest;
Returns sesult digest as b64 string
reset
$provider->reset;
Reset data (set to "")
HISTORY
See Changes
file
TO DO
See TODO
file
SEE ALSO
AUTHOR
Serż Minus (Sergey Lepenkov) https://www.serzik.com <abalama@cpan.org>
COPYRIGHT
Copyright (C) 1998-2024 D&D Corporation. All Rights Reserved
LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See LICENSE
file and https://dev.perl.org/licenses/