Perl 5 version 32.0 documentation

Digest::base

NAME

Digest::base - Digest base class

SYNOPSIS

  1. package Digest::Foo;
  2. use base 'Digest::base';

DESCRIPTION

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

  1. new
  2. clone
  3. add
  4. digest

The arguments and expected behaviour of these methods are described in Digest.

SEE ALSO

Digest