Keep It Simple, Stupid | |
PerlMonks |
Re: Writing highly obfuscated code in Perlby cLive ;-) (Prior) |
on Mar 14, 2001 at 20:19 UTC ( [id://64414]=note: print w/replies, xml ) | Need Help?? |
This is the shell of what I use. I actually build %replace_key manually. This version only works if you ensure that all subs and vars are unlikely to appear as words (or part of word) you print. Eg, don't use a var called $time if your script outputs something like:
OK, here's the meat (unobfuscated, and well commented :)... Depending on the consistancy of your coding style, you can add other obfuscations. EG, I always mark comments as: so I can rip them all out with I also use the following: That leaves your code totally readable, but when you run it through the obfuscater and let it loose... ;-) Any othet s/obfuscation/pattern/ suggestions welcomed :) later cLive ;-)
In Section
Tutorials
|
|