¿How to encrypt JavaScript Code?

E

Eduardo F. Sandino

Any one knows how to encrypt javascript code... other way than escape()
and unescape() [not is encrypt but a way to protect source code ????
 
I

Ian Collins

Eduardo said:
Any one knows how to encrypt javascript code... other way than escape()
and unescape() [not is encrypt but a way to protect source code ????
None, you put your code on the web, it can be read.
 
C

cwdjrxyz

Eduardo said:
Any one knows how to encrypt javascript code... other way than escape()
and unescape() [not is encrypt but a way to protect source code ????

There really is no good way to hide your javascript from those with a
decent knowledge of script and html. However, in some cases, you can do
things on the server using a script such as php rather than using
javascript on the client's browser. The viewing browser can not see the
php - it can only see the results of what the php does. Of course some
things can only be done by script on the browser. For example, some
input from the browser user may be needed to complete a script action.
However there is nothing to prevent you from using php on the server
for most things and also javascript on the browser for a few things
that php can not handle.

I always wonder why someone is wanting to hide script. I see very few
scripts that use really new and unique code. Most scripts are written
using standard code that has often been used in the past. The main
difference is how different sequences of code are put together to make
up the complete script.

If one can completely replace javascript with php, the php on the
server can not be turned off by the client as can javascript on the
browser. This could be important for those who present something
important that is best done by script and who do not want to risk the
small number of browsers with script turned off from seeing their
important message.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top