<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Obscufated email ?</title>
	<atom:link href="http://www.larsen-b.com/Article/167.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.larsen-b.com/Article/167.html</link>
	<description>Titanium Exposé</description>
	<pubDate>Tue, 06 Jan 2009 08:42:22 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Jkx</title>
		<link>http://www.larsen-b.com/Article/167.html#comment-517</link>
		<dc:creator>Jkx</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-517</guid>
		<description>This is a sample post to show my email :=)</description>
		<content:encoded><![CDATA[<p>This is a sample post to show my email :=)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dagur</title>
		<link>http://www.larsen-b.com/Article/167.html#comment-518</link>
		<dc:creator>Dagur</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-518</guid>
		<description>&lt;p&gt;For even shorter code:&lt;/p&gt;
&lt;p&gt;address=&#34;&lt;a class="reference" href="mailto:some&#64;address.com"&gt;some&#64;address.com&lt;/a&gt;&#34;
print ''.join([&#34;&#38;#%d;&#34; % ord(x) for x in address])&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>For even shorter code:</p>
<p>address=&quot;<a class="reference" href="mailto:some&#64;address.com">some&#64;address.com</a>&quot;<br />
print &#8221;.join([&quot;&amp;#%d;&quot; % ord(x) for x in address])</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jkx</title>
		<link>http://www.larsen-b.com/Article/167.html#comment-519</link>
		<dc:creator>Jkx</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-519</guid>
		<description>&lt;p&gt;Yeah it's shorter, in fact the topic is 'Obscufated email' not Obscufated Python :) ..  But your version is easy to read too ..&lt;/p&gt;
&lt;p&gt;-- Happy obscufated ? :)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Yeah it&#8217;s shorter, in fact the topic is &#8216;Obscufated email&#8217; not Obscufated Python :) ..  But your version is easy to read too ..</p>
<p>&#8211; Happy obscufated ? :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pedro</title>
		<link>http://www.larsen-b.com/Article/167.html#comment-520</link>
		<dc:creator>Pedro</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-520</guid>
		<description>Ofcourse you could also do:&lt;br /&gt;
&lt;br /&gt;
def cryptEmailAddress(addr):&lt;br /&gt;
&#160; &#160; return reduce(lambda a, b: "%s&#%d;"%(a, ord(b)), addr,'')&lt;br /&gt;
&lt;br /&gt;
:)</description>
		<content:encoded><![CDATA[<p>Ofcourse you could also do:</p>
<p>def cryptEmailAddress(addr):<br />
<br />
&nbsp; &nbsp; return reduce(lambda a, b: &#8220;%s&#%d;&#8221;%(a, ord(b)), addr,&#8221;)</p>
<p>:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pedro</title>
		<link>http://www.larsen-b.com/Article/167.html#comment-521</link>
		<dc:creator>Pedro</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-521</guid>
		<description>&lt;p&gt;Ofcourse you could also do:&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;def cryptEmailAddress(addr):&lt;/dt&gt;
&lt;dd&gt;return reduce(lambda a, b: &#34;%s&#38;#%d;&#34;%(a, ord(b)), addr,'')&lt;/dd&gt;
&lt;/dl&gt;
&lt;p&gt;sorry about the raw crap ;)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Ofcourse you could also do:</p>
<dl>
<dt>def cryptEmailAddress(addr):</dt>
<dd>return reduce(lambda a, b: &quot;%s&amp;#%d;&quot;%(a, ord(b)), addr,&#8221;)</dd>
</dl>
<p>sorry about the raw crap ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jkx</title>
		<link>http://www.larsen-b.com/Article/167.html#comment-522</link>
		<dc:creator>Jkx</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-522</guid>
		<description>&lt;p&gt;In fact, i'm working in a school, so I avoid this kind of stuf :)&lt;/p&gt;
&lt;p&gt;-- /join #perl-golf&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>In fact, i&#8217;m working in a school, so I avoid this kind of stuf :)</p>
<p>&#8211; /join #perl-golf</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pedro</title>
		<link>http://www.larsen-b.com/Article/167.html#comment-523</link>
		<dc:creator>Pedro</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-523</guid>
		<description>&lt;p&gt;and ofcourse if you look from the spamers point of view:&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;def decryptEmailAddress(obf):&lt;/dt&gt;
&lt;dd&gt;return reduce(lambda a, b: a+chr(int(b)), obf[2:-1].split(';&#38;#'), '')&lt;/dd&gt;
&lt;/dl&gt;
&lt;p&gt;:D&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>and ofcourse if you look from the spamers point of view:</p>
<dl>
<dt>def decryptEmailAddress(obf):</dt>
<dd>return reduce(lambda a, b: a+chr(int(b)), obf[2:-1].split(&#8217;;&amp;#&#8217;), &#8221;)</dd>
</dl>
<p>:D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.larsen-b.com/Article/167.html#comment-524</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-524</guid>
		<description>this is a very old trick, and i'm sure all email address harvesters can already cope with this - it's almost as simple as the AT/DOT crap</description>
		<content:encoded><![CDATA[<p>this is a very old trick, and i&#8217;m sure all email address harvesters can already cope with this - it&#8217;s almost as simple as the AT/DOT crap</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prisz</title>
		<link>http://www.larsen-b.com/Article/167.html#comment-525</link>
		<dc:creator>Prisz</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-525</guid>
		<description>Oh, is it so easy to get on Python Daily? :-)&lt;br /&gt;
I've been using this hack (in its one-liner form) for a long time. ;)&lt;br /&gt;
&lt;br /&gt;
So here's another scrambler so that I get famous: :D&lt;br /&gt;
def nojs_scramble(address):&lt;br /&gt;
&#160; &#160; r = ''&lt;br /&gt;
&#160; &#160; for x in xrange(len(address)):&lt;br /&gt;
&#160; &#160; &#160; &#160; if x % 2 == 0:&lt;br /&gt;
&#160; &#160; &#160; &#160; &#160;  r += address[x]&lt;br /&gt;
&#160; &#160; &#160; &#160; else:&lt;br /&gt;
&#160; &#160; &#160; &#160; &#160;  r += '&#%d;' % ord(address[x])&lt;br /&gt;
&#160; &#160; return r&lt;br /&gt;
&lt;br /&gt;
def js_scramble(address):&lt;br /&gt;
&#160; &#160; r = "var s=''; ";&lt;br /&gt;
&#160; &#160; for x in xrange(0,len(address),2):&lt;br /&gt;
&#160; &#160; &#160; &#160; r += "s += '%s'; " % address[x:x+2]&lt;br /&gt;
&#160; &#160; r += "document.write(s);"&lt;br /&gt;
&#160; &#160; return r&lt;br /&gt;
&lt;br /&gt;
def scramble(address):&lt;br /&gt;
&#160; &#160; import random&lt;br /&gt;
&#160; &#160; v = {}&lt;br /&gt;
&#160; &#160; v['nojs'] = nojs_scramble(address)&lt;br /&gt;
&#160; &#160; v['js'] = js_scramble(address)&lt;br /&gt;
&#160; &#160; result = """&lt;br /&gt;
&#160; &#160;  &lt;script&gt;&lt;br /&gt;
&#160; &#160; &#160; %(js)s&lt;br /&gt;
&#160; &#160;  &lt;/script&gt;&lt;br /&gt;
&#160; &#160;  &lt;noscript&gt;&lt;br /&gt;
&#160; &#160; &#160; %(nojs)s&lt;br /&gt;
&#160; &#160;  &lt;/noscript&gt;&lt;br /&gt;
&#160; &#160; """ % v&lt;br /&gt;
&#160; &#160; return result&lt;br /&gt;
&lt;br /&gt;
print scramble('test@domain.com')&lt;br /&gt;
&lt;br /&gt;
This gives:&lt;br /&gt;
&lt;br /&gt;
&#160; &#160;  &#60;script&gt;&lt;br /&gt;
&#160; &#160; &#160; var s=''; s += 'te'; s += 'st'; s += '@d'; s += 'om'; s += 'ai'; s += 'n.'; s += 'co'; s += 'm'; document.write(s);&lt;br /&gt;
&#160; &#160;  &#60;/script&gt;&lt;br /&gt;
&#160; &#160;  &#60;noscript&gt;&lt;br /&gt;
&#160; &#160; &#160; t&#101;s&#116;@&#100;o&#109;a&#105;n&#46;c&#111;m&lt;br /&gt;
&#160; &#160;  &#60;/noscript&gt;&lt;br /&gt;
&#160; &#160; &lt;br /&gt;
</description>
		<content:encoded><![CDATA[<p>Oh, is it so easy to get on Python Daily? :-)<br />
<br />
I&#8217;ve been using this hack (in its one-liner form) for a long time. ;)</p>
<p>So here&#8217;s another scrambler so that I get famous: :D<br />
<br />
def nojs_scramble(address):<br />
<br />
&nbsp; &nbsp; r = &#8221;<br />
<br />
&nbsp; &nbsp; for x in xrange(len(address)):<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; if x % 2 == 0:<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  r += address[x]<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; else:<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  r += &#8216;&#%d;&#8217; % ord(address[x])<br />
<br />
&nbsp; &nbsp; return r</p>
<p>def js_scramble(address):<br />
<br />
&nbsp; &nbsp; r = &#8220;var s=&#8221;; &#8220;;<br />
<br />
&nbsp; &nbsp; for x in xrange(0,len(address),2):<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; r += &#8220;s += &#8216;%s&#8217;; &#8221; % address[x:x+2]<br />
<br />
&nbsp; &nbsp; r += &#8220;document.write(s);&#8221;<br />
<br />
&nbsp; &nbsp; return r</p>
<p>def scramble(address):<br />
<br />
&nbsp; &nbsp; import random<br />
<br />
&nbsp; &nbsp; v = {}<br />
<br />
&nbsp; &nbsp; v['nojs'] = nojs_scramble(address)<br />
<br />
&nbsp; &nbsp; v['js'] = js_scramble(address)<br />
<br />
&nbsp; &nbsp; result = &#8220;&#8221;"<br />
<br />
&nbsp; &nbsp;  <script>
<br />
&nbsp; &nbsp; &nbsp; %(js)s
<br />
&nbsp; &nbsp;  </script><br />
<br />
&nbsp; &nbsp;  <noscript><br />
<br />
&nbsp; &nbsp; &nbsp; %(nojs)s<br />
<br />
&nbsp; &nbsp;  </noscript><br />
<br />
&nbsp; &nbsp; &#8220;&#8221;" % v<br />
<br />
&nbsp; &nbsp; return result</p>
<p>print scramble(&#8217;test@domain.com&#8217;)</p>
<p>This gives:</p>
<p>&nbsp; &nbsp;  &lt;script><br />
<br />
&nbsp; &nbsp; &nbsp; var s=&#8221;; s += &#8216;te&#8217;; s += &#8217;st&#8217;; s += &#8216;@d&#8217;; s += &#8216;om&#8217;; s += &#8216;ai&#8217;; s += &#8216;n.&#8217;; s += &#8216;co&#8217;; s += &#8216;m&#8217;; document.write(s);<br />
<br />
&nbsp; &nbsp;  &lt;/script><br />
<br />
&nbsp; &nbsp;  &lt;noscript><br />
<br />
&nbsp; &nbsp; &nbsp; t&#101;s&#116;@&#100;o&#109;a&#105;n&#46;c&#111;m<br />
<br />
&nbsp; &nbsp;  &lt;/noscript><br />
<br />
&nbsp; &nbsp;<br />
</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prisz</title>
		<link>http://www.larsen-b.com/Article/167.html#comment-526</link>
		<dc:creator>Prisz</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-526</guid>
		<description>Oops, trouble with posting..&lt;br /&gt;
&lt;br /&gt;
&#160; &#160; result = """&lt;br /&gt;
&#160; &#160;  &#60;script&gt;&lt;br /&gt;
&#160; &#160; &#160; %(js)s&lt;br /&gt;
&#160; &#160;  &#60;/script&gt;&lt;br /&gt;
&#160; &#160;  &#60;noscript&gt;&lt;br /&gt;
&#160; &#160; &#160; %(nojs)s&lt;br /&gt;
&#160; &#160;  &#60;/noscript&gt;&lt;br /&gt;
&#160; &#160; """ % v&lt;br /&gt;
</description>
		<content:encoded><![CDATA[<p>Oops, trouble with posting..</p>
<p>&nbsp; &nbsp; result = &#8220;&#8221;"<br />
<br />
&nbsp; &nbsp;  &lt;script><br />
<br />
&nbsp; &nbsp; &nbsp; %(js)s<br />
<br />
&nbsp; &nbsp;  &lt;/script><br />
<br />
&nbsp; &nbsp;  &lt;noscript><br />
<br />
&nbsp; &nbsp; &nbsp; %(nojs)s<br />
<br />
&nbsp; &nbsp;  &lt;/noscript><br />
<br />
&nbsp; &nbsp; &#8220;&#8221;" % v<br />
</p>
]]></content:encoded>
	</item>
</channel>
</rss>
