Perl Obfuscator
David Cantrell
david at cantrell.org.uk
Wed Sep 19 22:21:29 BST 2007
On Wed, Sep 19, 2007 at 05:12:35PM +0200, Rafael Garcia-Suarez wrote:
> On 19/09/2007, David Cantrell <david at cantrell.org.uk> wrote:
> > But you're wrong. Merely changing all the variable, class and
> > subroutine names can go a long way to making code exceedingly hard to
> > read, and none of those tools can undo that. Why on earth do you think
> > that we exhort people to choose good variable names in the first place?
> Given the dynamic nature of Perl, and the games you can play with
> symbol tables / AUTOLOAD / aliases, it would be hard to write an
> obsfucator that changes subroutine names or class names while still
> producing a correct program. Hard, as in Turing problem hard :)
Given that most code doesn't play those games, and that you have a test
suite, it seems to be, in real life, ... not hard.
--
David Cantrell | Enforcer, South London Linguistic Massive
Aluminum makes a nice hat.
All paranoids will tell you that.
But what most do not know
Is reflections will show
On the CIA's evil landsat.
More information about the london.pm
mailing list