Your skill will accomplish what the force of many cannot |
|
PerlMonks |
SHA1 sum archival methodsby r1n0 (Beadle) |
on Nov 05, 2009 at 13:32 UTC ( [id://805261]=perlquestion: print w/replies, xml ) | Need Help?? |
r1n0 has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks, I want to extend a big thank you for all the helpful information over the course of time. :-) This discussion involves thoughts about creating a SHA1sum archive of file content. I want a portable archive that can be shared with others (emailing them the archive or allowing them to download it). I don't want to use a database because I want this as portable as possible. I would prefer to use files and directory trees if necessary, so when it is shared, others won't need to setup a database to read it. I want to use just Perl modules, too. Thanks to other monks, I have recently learned how to tie a hash to a file with DB_File. Is there a way to use files to store hash of hashes? If there is, this is a method I was considering. Also, a big log file could be created (text) but after millions of files summed, looking up things might take some time. The end result of this will allow someone to create SHA1sums of all files on their system. When completed, a master archive (what I want to build) will be used to compare the SHA1sums against a SHA1sum archive of whitelist files and/or copyright material and/or blacklist. I want to create a process that is fast, efficient, and doesn't require a DB solution. Fast is relative to the solution, I know. I'm not asking for any code, I am more interested in thought processes for how others think I should go about doing this. Once completed, I will post the code to the Monastery. Thank you in advance for your thoughts.
Back to
Seekers of Perl Wisdom
|
|