Very interesting. Here's how it works.
$_="this super-code example shows clearly how encoded text is,
siince a normal perl-codeblock should never-ever-ever contain it's
method embedded within -its- decoder as is. right, you're wrong
because my obstuf exempleifies it. honest programs should a) envoke
and b-work prescripted though never through it.";
=
Each word's length is how he encodes "just another perl hacker". Somet
+imes he mis-spells the words to get the right length: for example sii
+nce.
=cut
my@a=map{(/\.|,/)?0:length}(m;([-\w']+|(?:,|\.));g);
=
the regex matches each word, so each word is passed to map. Periods an
+d commas return 0, which is the null character, thus not taking up an
+y space. He does this so he can punctuate his string. As I said ear
+lier, the length of each word is returned.
=cut
print chr hex sprintf('%x'x2,$$,shift@a)while($$=shift@a);
=
Here he goes through @a by twos, performing
sprintf ('%x%x',$$, shift @a)
each time through. The result is a hexadecimal number for each word,
+formed by the word's length. Then he uses hex to turn that hex numbe
+r into decimal, and chr to turn it into it's ascii equivalent.
=cut
If I have made any mistakes, please inform me; I'm new to obfuscated code myself, but I liked this very much--good job iamcal.
Update: Good job tachyon. That's what I was trying to say, but I think you expressed it so much more clearly than me.
The 15 year old, freshman programmer,
Stephen Rawls |