Lines Matching refs:md5

10 @EXPORT_OK = qw(md5 md5_hex md5_base64);
34 Digest::Perl::MD5->import(qw(md5 md5_hex md5_base64));
56 use Digest::MD5 qw(md5 md5_hex md5_base64);
58 $digest = md5($data);
92 =item md5($data,...)
98 The result of md5("a", "b", "c") will be exactly the same as the
99 result of md5("abc").
103 Same as md5(), but will return the digest in hexadecimal form. The
109 Same as md5(), but will return the digest as a base64 encoded string.
116 base64 encoded md5 digests you might want to append the redundant
132 =item $md5 = Digest::MD5->new
137 If called as an instance method (i.e. $md5->new) it will just reset the
141 =item $md5->reset
143 This is just an alias for $md5->new.
145 =item $md5->clone
147 This a copy of the $md5 object. It is useful when you do not want to
152 my $md5 = Digest::MD5->new;
154 $md5->add($_);
155 print "Line $.: ", $md5->clone->hexdigest, "\n";
158 =item $md5->add($data,...)
161 calculate the digest for. The return value is the $md5 object itself.
163 All these lines will have the same effect on the state of the $md5
166 $md5->add("a"); $md5->add("b"); $md5->add("c");
167 $md5->add("a")->add("b")->add("c");
168 $md5->add("a", "b", "c");
169 $md5->add("abc");
171 =item $md5->addfile($io_handle)
174 message we calculate the digest for. The return value is the $md5
178 reason. If it croaks it is unpredictable what the state of the $md5
181 or reset the $md5 object if this occurs.
186 =item $md5->add_bits($data, $nbits)
188 =item $md5->add_bits($bitstring)
196 =item $md5->digest
204 digest value. Call $md5->clone->digest if you want to calculate the
207 =item $md5->hexdigest
209 Same as $md5->digest, but will return the digest in hexadecimal
213 =item $md5->b64digest
215 Same as $md5->digest, but will return the digest as a base64 encoded
223 md5 digests you might want to append the string "==" to the result.
244 $md5 = Digest::MD5->new;
245 $md5->add('foo', 'bar');
246 $md5->add('baz');
247 $digest = $md5->hexdigest;
263 $md5 = Digest::MD5->new;
265 $md5->add($_);
268 print $md5->b64digest, " $file\n";