in reply to Obfuscate my perl code
If you're still bent on trying to obfuscate the code for whatever reason, you'll just have to go about it by hand.. Change all of your variable names to, like, $a1, $a2, $a3, etc., remove white space and indentation, and perhaps encrypt static strings (via a simple XOR algorithm) so that it's difficult to read.
Finally, if you want to get real nasty about it, encode your script (via XOR or RSA if you feel it's necessary), put it in an __END__ block, and read/decode/eval on the fly.
Before you go through all of that work, though, ask yourself why you need this obfuscated. Perl code must be distributed in source form. It's not possible to keep people from figuring out how you do it. In the US at least, copyright and contract law (license) should offer you enough protection so that you don't have to worry about silliness like this.
|
---|
Replies are listed 'Best First'. | |
---|---|
RE: Re: Obfuscate my perl code
by mdillon (Priest) on Oct 27, 2000 at 20:06 UTC | |
by Fastolfe (Vicar) on Oct 27, 2000 at 21:11 UTC | |
RE: Re: Obfuscate my perl code
by elwarren (Priest) on Oct 27, 2000 at 20:10 UTC | |
Better variable names than that...
by blogan (Monk) on Oct 28, 2000 at 02:40 UTC |