Is "Module::Crypt" good enough to encrypt a perl script?

What is your definition of "good enough"? Note that there are no 100% perfect solutions - simply put, in order to run your code the computer is going to have to see it at some point. Also, you've read the documentation of Module::Crypt, right? In particular the Abstract? "... please keep in mind that nothing will keep a determined person from cracking any defense. We can only hope that with Module::Crypt it will take a seasoned Perl wizard to do this, not ordinary Joe Wannabe Cracker." See also How can I hide the source for my Perl program?

Would the script's execution slow down after it is encrypted?

Loading the script might be a little slower, but once it's compiled I think it should run at the same speed. But the only way to know for sure is to measure.

running into errors, please see below the cpan install log.

The errors say "Can't exec "gcc": No such file or directory", so it sounds like you don't have the GNU C Compiler installed. It looks like you're on some *NIX system, so you should be able to look into your package manager's directory for the package that contains "gcc". For example, on Debian-based systems like Ubuntu, sudo apt-get install build-essential.


In reply to Re: How to use Crypt::Module by haukex
in thread How to use Crypt::Module by m_jaser

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.