in reply to Brute force JAPH

Hi kyle,

I wrote an obfuscation that does something similar.  It was actually the inspiration that made me base my signature on the same idea.

It's a good (and, I believe, seldom-used) mechanism for obfuscations, partly because you can't know what the output will be until you run it.  perl -MO=Deparse program.pl doesn't help a bit!

Update  You could also simply do ...

... or something equally simple :)


s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/

Replies are listed 'Best First'.
Re^2: Brute force JAPH
by kyle (Abbot) on Feb 05, 2007 at 18:01 UTC

    you can't know what the output will be until you run it.

    Yes! That's a better way of saying what I like about it.

    You could also simply do ...

    Yes, that's a lot simpler, and it obviously requires the same brute force approach to produce. Still, I really like the idea of having it use itself to produce its output, but I'm not sure why. If I weren't shooting for that specifically, generation would have been easier. An early version did not vary the delimiters, but there was too much static text producing the same results from iteration to iteration.