[OT] Re: Hiding perl code

2002-07-22 Thread Dave Rolsky

On Mon, 22 Jul 2002, Andreas J. Koenig wrote:

  On Mon, 22 Jul 2002 13:10:25 +1000, Iain Truskett [EMAIL PROTECTED] said:

As far as I know, there's no good way to do it. It is Perl after all.
And with mod_perl things just get trickier.

 Filter::decrypt does that. It's very hard to break as you compile a
 self-made key statically into your perl. Filter::decrypt also disables
 the debugger within that perl. Can also be done for mod_perl. The
 encrypted modules look like this:

 use Filter::decrypt ;
 ÿ£j¨tBÓavð@¥€£hK6'{'„Þ^z'
 []


 Of course, perl itself (or mod_perl) sees the cleartext, so a good
 hacker will find a way to break it.

perl -MO=Deparse /path/to/encrypted/file(s)



-dave

/*==
www.urth.org
we await the New Sun
==*/




Re: [OT] Re: Hiding perl code

2002-07-22 Thread Andreas J. Koenig

 On Mon, 22 Jul 2002 10:17:21 -0500 (CDT), Dave Rolsky [EMAIL PROTECTED] said:

  use Filter::decrypt ;
  ÿ£j¨tBÓavð@¥€£hK6'{'„Þ^z'
  []
  
  
  Of course, perl itself (or mod_perl) sees the cleartext, so a good
  hacker will find a way to break it.

   perl -MO=Deparse /path/to/encrypted/file(s)

Funny, that would be a nice test. Unfortunately I have only encrypted
files for an old perl and have never tried with a perl that is
Deparse-enabled. If anybody else is willing to test how well Dave's
suggestion works, please post your experience.


-- 
andreas