Obfuscating Javascript codes, removing any alpha numeric char from code
<p>Using the javascript compatible with ECMAScript for any browser, a logic that be able to obfuscating javascript source removing alphanumeric chars and using only <code>[]{}!+-*&gt;&lt;</code> to write a any browser functional code.</p>

<p>Presenting some begin steps, then I stop because my logic is chrome only, so need help for a any browser solution.</p>

<p>Doing some tests you will get the further results:</p>

<pre><code>[]+[] // ""
{}+[] // 0
{}+{} // NaN
[]+{} // "[object Object]"
![] // false
!![] // true
</code></pre>

<p>So it's possible to write a string even if you don't type any alpha numeric in your code, like:</p>

<pre><code>([]+{})[!![]+!![]+!![]]+(![]+[])[!![]+!![]+!![]]
</code></pre>

<p>To go a lite far, you even can execute functions doing things like that:</p>

<pre><code>[]['sort'] // function sort() { [native code] }
</code></pre>

<p>Or, to obfuscate it:</p>

<pre><code>[][(![]+[])[!![]+!![]+!![]]+([]+{})[+!![]]+(!![]+{})[+!![]]+(!![]+{})[+![]]] // function sort() { [native code] }
</code></pre>

<p>Now I don't know how to continue for any browser, just for chrome.</p>

<p>I want to get any character, how can I do and be compatible? </p>

<p>How far can I go doing this obfuscating method, I know that the code will not be fast or short, but is very fun way to hide in the source code things.</p>

<p>What is the <strong>best logic</strong> to go further and be able to write any string or source code.</p>

<p><strong>EDIT:</strong></p>

<p>I don't wan't a obfuscation generator, I want the logic to do that, has many ways, but, some of then just work in one or other browsers, must be an way to work in all browsers without leaving the ECMAScript specifications.</p>
