-1

I have a piece of Javascript code that changes some values in my HTML. However, for security reasons it would be much better that the end user could not read my code. I know there are ways to obfuscate it, but they can all get cracked with more or less effort. What I would need is some way of executing code on the client's side, just as Javascript does, but by no means visible in the user's machine, like PHP or Perl. Is it possible?

4
  • See the simlar post [stackoverflow.com/questions/1628799/… [1]: stackoverflow.com/questions/1628799/… Commented Dec 26, 2012 at 9:17
  • @Variax just remove this silly idea from your head. It's not possible under any circumstances. All methods of obfuscation eventually fall. Commented Dec 26, 2012 at 9:20
  • @sreejithsdev this (and any other method of obfuscation) can be unravelled to view what code executes on the client-side. Commented Dec 26, 2012 at 9:22
  • we can't hide Javascript code,because code is interpreted on the browser.But we can obfuscate/minify code using third party tools. Commented Dec 26, 2012 at 9:28

2 Answers 2

0

No. If it needs to run on the client, it needs to be visible to the client. You can only obfuscate (maybe Flash or a Java applet is hard enough to crack for you) or go server-side.

Sign up to request clarification or add additional context in comments.

Comments

0

we can't hide Javascript code,because code is interpreted on the browser.But we can obfuscate/minify code using third party tools.See the simlar posts here

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.