Digest::baseSection: Perl Programmers Reference Guide (3)
Index Return to Main Contents
NAMEDigest::base - Digest base class
package Digest::Foo; use base 'Digest::base';
DESCRIPTIONThe "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 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