0

i wanted to secure my javascript code from other. Please suggest me how to do that. i wanted this code to me secure by hackers and developers. Is it possible to do so?

2 Answers 2

1

You can't hide Javascript because the browser downloads and executes it because its design is to work as client-side. Maybe you can give a try to javascript obfuscator that will make it hard to read only.

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

Comments

0

To hide the JS is very difficult. But u can minify the JS-File as an alternative. So it is very hard to understand the context. It changes the declaration to letters, so it is unreadable. Uglify is very nice. There are also some online Tools to do that.

Uglify JS: http://github.com/mishoo/UglifyJS

It is now being used by the jQuery project.

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.