0
How to implement a JavaScript encryption in a website to hide its source code?
3 Respuestas
+ 7
why would you need that? btw it's not really possible
+ 1
you can't encrypt the code and really, why do you want to. There shouldn't be any sensitive data on your front-end.
anyway, people use other methods like blocking the right click of the mouse or the key inputs to prevent users from opening the source code.
personally, i find that really annoying.
0
yeah its practically impossible to prevent users from viewing your source code without compromising the quality of browsing...btw you will find only 1 in a thousand users that will be interested in your source code...so, like Nikunj says, avoid sensitive data on your front-end