From: "Mikael Høilund" Date: 2008-05-19T13:18:11+09:00 Subject: Re: [QUIZ] Obfuscated Email Just thought I'd throw another one out there: a,b=%Q=Z,O^NPO\r4_PV\\PI\x15^-\x0\v=,email=%\%%%c\%115%%# Mikael Hoilund, CTO okay=%#;hmm=(0...a.size).map{|i|((a[i]-email[i]+2)%128).# of Meta.io ApS from chr}.join;!email.gsub!'o',"%c%c"%[3+?0.<<(2),?G.~@];aha=########### Denmark!! hmm.scan /#{'(.)'*5}/;puts(email[1..-12]+aha.shift.zip(*aha).join)# Ruby rox! Among the hacks are: * The first comment isn't a comment, but a %#...#-style string. It's used as a mask over `a`, by subtracting the sequential characters of the two strings, adding two, and modulo 128'ing. * The string `a` is the Caesar-square rotated plain-text email. `b` is a dummy, incidentally assigned the same string as `email`. * foo.<<(bar) instead of foo << bar, foo.~@ instead of ~foo * It re-uses the `email` string to print the name before the email address, cropping the ", CTO\nokay=". * It assumes UTF-8, and replaces the 'o' in `email` with "\303\270" for your viewing pleasure * It uses excessive punctuation in the comments to achieve equal line length. So sue me. :( -- Mikael Hoilund, CTO of Meta.io ApS from ######### Denmark!!