1MD2(3) User Contributed Perl Documentation MD2(3)
2
3
4
6 Digest::MD2 - Perl interface to the MD2 Algorithm
7
9 # Functional style
10 use Digest::MD2 qw(md2 md2_hex md2_base64);
11
12 $digest = md2($data);
13 $digest = md2_hex($data);
14 $digest = md2_base64($data);
15
16 # OO style
17 use Digest::MD2;
18
19 $ctx = Digest::MD2->new;
20
21 $ctx->add($data);
22 $ctx->addfile(*FILE);
23
24 $digest = $ctx->digest;
25 $digest = $ctx->hexdigest;
26 $digest = $ctx->b64digest;
27
29 The "Digest::MD2" module allows you to use the RSA Data Security Inc.
30 MD2 Message Digest algorithm from within Perl programs. The algorithm
31 takes as input a message of arbitrary length and produces as output a
32 128-bit "fingerprint" or "message digest" of the input.
33
34 The "Digest::MD2" programming interface is identical to the interface
35 of "Digest::MD5".
36
38 Digest::MD5
39
41 This library is free software; you can redistribute it and/or modify it
42 under the same terms as Perl itself.
43
44 Copyright 1998-2003 Gisle Aas.
45 Copyright 1990-1992 RSA Data Security, Inc.
46
48 Gisle Aas <gisle@aas.no>
49
50
51
52perl v5.34.0 2021-07-22 MD2(3)