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?
-
See the simlar post [stackoverflow.com/questions/1628799/… [1]: stackoverflow.com/questions/1628799/…sreejithsdev– sreejithsdev2012-12-26 09:17:19 +00:00Commented 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.David-SkyMesh– David-SkyMesh2012-12-26 09:20:45 +00:00Commented 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.David-SkyMesh– David-SkyMesh2012-12-26 09:22:34 +00:00Commented 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.sreejithsdev– sreejithsdev2012-12-26 09:28:41 +00:00Commented Dec 26, 2012 at 9:28
Add a comment
|
2 Answers
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