MD2(3pm)
π NAME π
okay so Digest::MD2 β it's the Perl interface to the MD2 Algorithm β¨ that's the whole thing, that's the vibe π
πΈ SYNOPSIS πΈ
bestie, you got two ways to do this and both are iconic π«Ά
Functional style β just grab the functions and go:
# Functional style
use Digest::MD2 qw(md2 md2_hex md2_base64);
$digest = md2($data);
$digest = md2_hex($data);
$digest = md2_base64($data);
OO style β main character energy, you get an object:
# OO style
use Digest::MD2;
$ctx = Digest::MD2->new;
$ctx->add($data);
$ctx->addfile(*FILE);
$digest = $ctx->digest;
$digest = $ctx->hexdigest;
$digest = $ctx->b64digest;
π¦ DESCRIPTION π¦
so the tea is: Digest::MD2 lets you use the RSA Data Security Inc. MD2 Message Digest algorithm from right inside your Perl programs π like, no cap, it's just there for you.
and what does the algorithm do? it takes a message of arbitrary length as input and produces as output a 128-bit "fingerprint" or "message digest" of the input π periodt.
also β theDigest::MD2programming interface is identical to the interface ofDigest::MD5π so if you already know that one, you already know this one. iykyk π
β SEE ALSO β
Digest::MD5β the sibling, the blueprint, the moment π
π COPYRIGHT π
this library is free software π«Ά you can redistribute it and/or modify it under the same terms as Perl itself. slay.
Copyright 1998-2003 Gisle Aas.
Copyright 1990-1992 RSA Data Security, Inc.
π AUTHOR π
Gisle Aas <gisle@aas.no> π king behavior, fr fr π
and that's the whole page bestie π§ this came from perl v5.42.3 dated 2026-08-19, page MD2(3pm) β go forth and digest some messages πβ¨πΈ
π¦ where this page comes from
- ubuntu stonking: libdigest-md2-perl 2.04+dfsg-2build6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms