NAME

CTK::Digest - CTK Digest base class

VERSION

Version 1.01

SYNOPSIS

use parent qw/CTK::Digest/;

DESCRIPTION

CTK Digest base class

METHODS

new
my $provider = CTK::Digest::Provider->new();

Returns Digest Provider instance

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 sesult 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

BUGS

* none noted

SEE ALSO

Digest

AUTHOR

Serż Minus (Sergey Lepenkov) https://www.serzik.com <abalama@cpan.org>

COPYRIGHT

Copyright (C) 1998-2022 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/