|The stupid question is the question not asked|
How to protect a mod_perl scriptby avo (Pilgrim)
|on May 25, 2006 at 08:31 UTC||Need Help??|
avo has asked for the
wisdom of the Perl Monks concerning the following question:
Good day fellow monks, I've been working on a commercial mod_perl software, that is supposed to be installed on the client's Intranet (LAN) server under Windows XP. My problem is that I don't want to give them the source code / or if I do so, it must be scrambled or obfuscated properly so it is difficult for them to understand it. I went looking on the net for proper perl obfuscation software but I couldn't find any that works.
Then I decided to write myself a small filter that removes my source code perl comments "#" and then the new line \n from each line... which is good as a start. Then I noticed that some times I have the # used in places like normal messages, and in some regular expressions... and the code that I am talking about is quite large... to manualy remove the comments. So I have been thinking and thinking and decided to ask you guys what must I do to make the code sort of protected from people's eyes. I understand that I can not realy protect it from a person that knows Perl... what I mean is to make it less readable so there is no easy way for somebody to alter / study it.
I am using Filter::Decrypt for all other source code that is not mod_perl... but unfortunately mod_perl doesn't support source code filters or may be it does... through Apache ... which I couldn't find either.
Is there a good perl source code comments remover... or mod_perl source filter
or other way to keep my source protected (even through hiding the folder in Windows with third party software).
Please help me.