31 Dec 2002 10:05:41 UTC
- Distribution: Meta
- Module version: 0.12
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (5 / 0 / 0)
- KwaliteeBus factor: 0
- % Coverage
- License: unknown
- Activity24 month
- Download (454.37KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
- FUNCTION DOCUMENTATION
- SUPER CLASSES
- SEE ALSO
Meta::Digest::MD5 - extend the standard Digest::MD5 module.
Copyright (C) 2001, 2002 Mark Veltzer; All rights reserved.
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.
MANIFEST: MD5.pm PROJECT: meta VERSION: 0.12
package foo; use Meta::Digest::MD5 qw(); my($md5)=Meta::Digest::MD5->new(); my($digest_file)=$md5->get_filename_digest("/etc/passwd");
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.
get_filename_digest($) get_filename_hexdigest($) get_filename_b64digest($) TEST($)
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.
Same as get_filename_digest but returns the result in hex.
Same as get_filename_digest but returns the result in base 64.
Test suite for this module.
Name: Mark Veltzer Email: mailto:email@example.com WWW: http://www.veltzer.org CPAN id: VELTZER
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
Digest::MD5(3), Meta::IO::File(3), strict(3)