Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Obfuscation: Text munging techniques

by jryan (Vicar)
on Aug 09, 2002 at 22:55 UTC ( [id://189087]=note: print w/replies, xml ) Need Help??


in reply to Obfuscation: Text munging techniques

Replace recognizable pieces of code with stuff that does the same thing. Try to remove constants and temporary variables as much as possible, since they'll jump out at the viewer as something recognizable among all of the "junk". For instance, instead of
$var =~ s/[a-z]//g; print $var;
you could do:
eval qq|@{[print=>q<grep!y,\x61-\x7a,,,split''>]}|
Sure its longer, but how many people can guess what it will do by first glance? :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://189087]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2024-04-19 22:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found