Being involved in a development of a large commercial software using the mod_perl platform made me look for an effective way of hiding the source code... from the usual non-perl users. The reason for that is that the software (www.opentill.com) is going on the market soon and I have been asked by my partners to look at making the software source code unreadable. I've been using a modified Filter::Decrypt for all other parts - a normal Tk scripts that are running on the terminals... but I couldn't do that with the mod_perl program, because mod_perl doesn't support source filters. I've tried (successfully) a simple obfuscation... but that's not good enough. Playing arround I found that there is a way of encrypting the source code under mod_perl (using Filter::Decrypt)... and that's if you move all the source code to a module and encrypt the module. This is a solution to the problem and I just wanted to share my thoughts here with you. Any comments are welcome.

AN UPDATE...

The reason why I am encrypting the source is because the source has got a key generator which creates the initial installation key. Then the company selling is providing an unlock key accordingly. The software can not be copied to another computer, because the installation key will change. That all is simple thing to crack, but not so simple if your source code is somehow invisible/hidden.


Thanks a lot for all your comments!

In reply to using source filter with mod_perl scripts by avo

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.