Hello,

Recently I got a PERL program written that will encrypt file using Blowfish. I need some changes but am unable to trace that person and I am not a PERL programmer.

Hence I would like to put following questions in this forum:

a. The file cryptdata.pl has the following line: use Crypt::Blowfish; Since I am running this under windows and the source is pure text, can I change the line to use Crypt::Blowfish_PP; using NotePad?

b. Also can I change the line:

my $proc = new Crypt::Blowfish $key_valid;
to
my $proc = new Crypt::BlowfishPP $key_valid;

c. The source file has:

my $key = "My key"
Now this key is in pure text format. How can I encrypt this key itself? Otherwise programmers who will use this source file can see the key which is not good. In other words, I need to put the encrypted key and then decrypt it at run-time. If this is not possible, then can I compile this cryptdata.pl file into an executable? If yes, how? or is there any third party tool that can convert my .pl file into an exe?

d. What is difference between Blowfish and Blowfish_PP? Will the output differ if I change Blowfish to Blowfish_PP?

Regards,
VJ


In reply to PERL And Blowfish by vjj

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.