I'm writing the chapter in Mastering Perl on cleaning up source code, so I figured I'd look at some code obfuscators. I'm sure other people will have stories to tell.
The most stupid obfuscators just get rid of whitespace. perltidy clears that right up.
The oddest one I found looked like it did a lot of stuff, but the last statement in the file was always
. I changed the
and there's the program. A slightly fancier one had several rounds of that. Still, I had the source in two minutes, and that's just doing it manually.
I'm thinking, just for the heck of it, creating some de-obfuscators just to put in the book.