The only real suggestion I have for you is take the code you want to protect, and throw it in a file as a data segment, and make a self-decripting perl file that takes one command line argument, the key. The entire point of this wrapper perl file would be to read the data in, decrypt, unpack it, and then eval it. To obscure a script language is difficult, no matter what you do, especially if it's heavily bound to the interpreter. If you need to hide stuff away, consider either packing away the string that contains the code (or using Storable to freeze it)and then encrypting with one of the major perl Crypt::* modules.
Other than that, enjoy the time off. Keep the decryption key.
-- jb
-
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.
|