See also DBM::Deep - pay attention to the DBM::Deep FILTERS section. There is even an encryption example (mind you, encryption on smaller chunks of data may make it easier to break - something with padding of some sort may help).

As mentioned above, encryption on smallish chunks of data can make things easier (for some definition of easier) to break, as the search space is smaller. If you don't need record level encryption, and just want to keep the cleartext off from the disk (the user would still possibly be able to access the data however), try http://www.truecrypt.org. I use it frequently for my thumbdrives, as well as anything else on my "anchored" machines that I would have problems with walking away. I mount it when needed, and unmount it when done.

As is my typical advice - when rolling your own encryption method, even if using someone else's algorithm, be very careful. There have been some spectacular failures due to misusing an algorithm or setting up prerequisites incorrectly.

--MidLifeXis


In reply to Re: File handle modules by MidLifeXis
in thread File handle modules by Anonymous Monk

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.