NAME
Meta::Digest::MD5 - extend the standard Digest::MD5 module.
COPYRIGHT
Copyright (C) 2001, 2002 Mark Veltzer; All rights reserved.
LICENSE
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
DETAILS
MANIFEST: MD5.pm
PROJECT: meta
VERSION: 0.12
SYNOPSIS
package foo;
use Meta::Digest::MD5 qw();
my($md5)=Meta::Digest::MD5->new();
my($digest_file)=$md5->get_filename_digest("/etc/passwd");
DESCRIPTION
This module extends the functionality found in the Digest::MD5 standard module with code that otherwise will have to be written many times in places of Digest::MD5. The object inherits from Digest::MD5 so you can use all of that modules functionality too. I try very hard not to override existing MD5 methods.
FUNCTIONS
get_filename_digest($)
get_filename_hexdigest($)
get_filename_b64digest($)
TEST($)
FUNCTION DOCUMENTATION
- get_filename_digest($)
-
This method adds a file name to the current Meta::Digest::MD5 object. The reason we use the object oriented methodology here (creating an object and then adding the file using the addfile method) is that it could be that this method is much more memory effective since we don't have to load the entire blob to memory at one time as we would do if we had uploaded everything and then used the "md5" method of the package.
- get_filename_hexdigest($)
-
Same as get_filename_digest but returns the result in hex.
- get_filename_b64digest($)
-
Same as get_filename_digest but returns the result in base 64.
- TEST($)
-
Test suite for this module.
SUPER CLASSES
Digest::MD5(3)
BUGS
None.
AUTHOR
Name: Mark Veltzer
Email: mailto:veltzer@cpan.org
WWW: http://www.veltzer.org
CPAN id: VELTZER
HISTORY
0.00 MV more perl packaging
0.01 MV tree type organization in databases
0.02 MV md5 project
0.03 MV database
0.04 MV perl module versions in files
0.05 MV movies and small fixes
0.06 MV thumbnail user interface
0.07 MV more thumbnail issues
0.08 MV website construction
0.09 MV web site automation
0.10 MV SEE ALSO section fix
0.11 MV move tests to modules
0.12 MV md5 issues
SEE ALSO
Digest::MD5(3), Meta::IO::File(3), strict(3)
TODO
Nothing.