Can I hide my javascript code on the client side???
Or some way make it non-readable not by users but by hackers as well??
Can I hide my javascript code on the client side??? Or some way make
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no way. It can’t be encrypted because the browser has to execute it and he doesn’t know how to decrypt.
Best is to minify/obfuscate (see anax) in order to let users don’t bother trying to read the code. If someone wants it badly, he eventually get it. The time to do so is high, and hopefully this will dis-encourage users.