Connecting Tech Pros Worldwide Help | Site Map

Hiding Javascript Code

skarnath
Guest
 
Posts: n/a
#1: Dec 22 '05
I have some javascript i don't want the client to be able to view. is there
a method of hiding the code vs disableing the right click button?
Once again thanks in advance.
SMK


Michael Winter
Guest
 
Posts: n/a
#2: Dec 22 '05

re: Hiding Javascript Code


On 22/12/2005 12:35, skarnath wrote:
[color=blue]
> I have some javascript i don't want the client to be able to view. is there
> a method of hiding the code vs disableing the right click button?[/color]

No.
[color=blue]
> Once again thanks in advance.[/color]

You're welcome.

Mike

--
Michael Winter
Prefix subject with [News] before replying by e-mail.
bwucke@gmail.com
Guest
 
Posts: n/a
#3: Dec 22 '05

re: Hiding Javascript Code


>No.

Oh, but I disagree. Run some javascript interpreter on the server side.
Or just don't give the client the javascript. Or disable his right
button, left button, keyboard, harddrive and monitor. And network.

Actually, there's a whole lot of methods of hiding Javascript. None
works.

Evertjan.
Guest
 
Posts: n/a
#4: Dec 22 '05

re: Hiding Javascript Code


wrote on 22 dec 2005 in comp.lang.javascript:
[color=blue][color=green]
>>No.[/color]
>
> Oh, but I disagree. Run some javascript interpreter on the server side.
> Or just don't give the client the javascript. Or disable his right
> button, left button, keyboard, harddrive and monitor. And network.
>
> Actually, there's a whole lot of methods of hiding Javascript.[/color]

[color=blue]
> None works.[/color]

Oh, but I disagree.

Run serverside javascript under ASP as you hinted at above,
and the code is perfectly hidden from the client.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jasen Betts
Guest
 
Posts: n/a
#5: Dec 23 '05

re: Hiding Javascript Code


On 2005-12-22, skarnath <reply@newsgroup.please> wrote:
[color=blue]
> I have some javascript i don't want the client to be able to view.[/color]

take it off your server then.

there's no way to completely hide javascript from the user.

encryption is probably possible, but that's not the same thing...



Bye.
Jasen
bwucke@gmail.com
Guest
 
Posts: n/a
#6: Dec 23 '05

re: Hiding Javascript Code


> encryption is probably possible, but that's not the same thing...

If it's to be executed, it must be decrypted first. And if the client
can decrypt it for purpose of execution, they can decrypt it for
purpose of viewing.

Better just write code you won't be ashamed to show to your clients.

Closed Thread