Digest::base - Digest base class
package Digest::Foo; use base 'Digest::base';
The Digest::base class provide implementations of the methods addfile and add_bits in terms of add, and of the methods hexdigest and b64digest in terms of digest.
Digest::base
addfile
add_bits
add
hexdigest
b64digest
digest
Digest implementations might want to inherit from this class to get this implementations of the alternative add and digest methods. A minimal subclass needs to implement the following methods by itself:
new clone add digest
The arguments and expected behaviour of these methods are described in Digest.
Digest
To install Digest, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Digest
CPAN shell
perl -MCPAN -e shell install Digest
For more information on module installation, please visit the detailed CPAN module installation guide.