How to secure the Javascript Code?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1660060/how-to-prevent-your-javascripts-being-stolen-copied-and-viewed">how to prevent your javascripts being stolen,copied, and viewed ?</a>  </p>
</blockquote>



<p>Hi</p>

<p>What is the best way to secure the javascript code &amp; make it hard to understand it and for sure steal it... I know that its impossible to secure it 100% since its client side and all the code the client can see it.. But I need to make it as hard as possible...</p>

<p>thanks alot Guys.. </p>

<p>//----------------------------- Added ------------------------</p>

<p><strong>there is a site that used a new way to secure the javascript code using the regular expression.. is there is a way to see the code easily ?? is it safe to do that method??
and how to do it, if its hard to do it??
<a href="http://samy.pl/" rel="nofollow">http://samy.pl/</a></strong></p>
