Re: Protect Script Code

2002-02-09 Thread Christian Biesinger

Paulo Lopes wrote:
 Is there a way to protect javascript code?

No and there can't be.
The browser must see the cleartext Javascript code to execute it, and if 
the browser can decode it, a user can as well.


-- 
They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety.
  -- Benjamin Franklin





Re: Protect Script Code

2002-02-05 Thread Ben Bucksch

Henrik Gemal wrote:

 Paulo Lopes wrote:

 Is there a way to protect javascript code?
 Something like microsoft script encoder, but that aplies to Mozilla?

 Nope. MS Script encode is stupid and very easy to decode. 

I think it's impossible. Mozilla is open-source. I can always hack my 
Mozilla to display instead of execute the JS.

Apart from that, it is the wrong thing to do. The script is executed on 
the user's machine, so I believe the user has a right to see whst is 
being executed. Esp. because websites usually are not (and can not be) 
trusted by the visitor.

Ben Bucksch