Digest::base(3pm) Perl Programmers Reference Guide Digest::base(3pm)

# [NAME](#NAME)

Digest::base - Digest base class

# [SYNOPSIS](#SYNOPSIS)

```
  package Digest::Foo;
  use base 'Digest::base';
```

# [DESCRIPTION](#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:

```
    new
    clone
    add
    digest
```

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

# [SEE ALSO](#SEE_ALSO)

Digest

2026-08-31 perl v5.44.0

---

Document: Digest::base(3pm) from perl 5.44.0-r1 (Chainguard OS)
Source: https://github.com/Perl/perl5.git
