There are two different implementations of Blowfish in CPAN. As I said "the CPAN implementations of Blowfish and Rijndael I am using have binary elements" (note my wording). I know that there are Pure Perl implementations of Blowfish, and obviously you are using one of them. That was not the point of my question to you.

From your posting (and your follow-up) you seem to be under the impression that using non-PurPerl modules requires forking or external process calls. Whereas I am using the faster XS implementation of Blowfish (which links against a dll) this also allows me to run the encryption code inline with my existing Perl.

The benefit of Pure Perl modules comes at installation time (when you don't need a compiler), at run time I think the interface for the two implementations of Crypt::Blowfish are exactly the same. The XS version has the same interface and is faster so, as far as I can see the selection of a Pure Perl solution only makes sense in relation to your, as you put it OS of choice.

So far the performance of my solution has turned out to be "good enough" (that is there are plenty of other places in the code that need attention before I will worry about it)


In reply to Re^4: Compressing and Encrypting files on Windows by hawtin
in thread Compressing and Encrypting files on Windows by hawtin

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.