what are the cons to encrypt part of your html code?

W.Des 2009

New member
Hello,

I'm building a website and there are a few lines of coding that i'd like to encrypt and I wanted to know the cons for doing so.

I'd like to encrypt 2 lines at the very beginning that link 2 scripts which holds the majority of my javascript... and certain objects i'd like to encrypt...

Would this be acceptable?

Can anyone share some cons?
 
One con I can think about immediately... what happens when you want to edit or change it?

Another thing, if the person wants the scripts badly enough, they're going to get it. There isn't much you can do to "secure" HTML/JS/anything that the end users computer will have to read/parse/display.

Only real trick to deterring people from downloading your JS source is to bury it. Go search for something on google and then look at the source to get an idea of what I'm talking about by burying.
 
Back
Top