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.

In reply to SHA1 sum archival methods by r1n0

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.