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.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|