Digest::base(3pm)

πŸ’… NAME πŸ’…

Digest::base β€” the digest base class, fr fr. Hi bestie, this page is from the Perl Programmers Reference Guide.

✨ SYNOPSIS ✨

Like, literally:

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

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so the Digest::base class gives you implementations of the methods addfile and add_bits β€” both built in terms of add β€” and it also gives you hexdigest and b64digest in terms of digest. Slay.

Digest implementations might want to inherit from this class to get these implementations of the alternative add and digest methods. A minimal subclass needs to implement the following methods all by itself:

  • new
  • clone
  • add
  • digest

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

πŸ‘‘ SEE ALSO πŸ‘‘

Digest β€” go read that one too, iykyk.


Byeee bestie! πŸ’– This page is from perl v5.42.3, dated 2026-11-03, and it's Digest::base(3pm) β€” mwah! πŸŽ€

πŸ“¦ where this page comes from