• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 519
  • Last Modified:

How bullet proof is HTML code encryption?

Hi All,

 How bullet proof is HTML code encryption?
And if it is really hard to figure out and decrypt it, what is the best software tool out there for the job?

  • 2
1 Solution

Not bullet proof at all, I would say, as the browser has to be able to interpret it.
Of course it all depends on who you want to hide the html from. Also, hidden/protected code night make people curious.
If you want to make it hard(er) to figure out, just don't use html, use an applet or flash - but as a general rule, I'd say, by trying to protect your code, you will make it less and less accessible to many users.
As COBOLdinosaur said in one of the older or ancient threads below, as an ultimate weapon to steal the html, a programmer can write an own simple browser/client and do with the received source whatever he wishes.


So it's all a question of - how hard do you want to make it for the regular user to see the code, vs how accessible do you want your site to be/remain...  All keeping in mind that there's no bullet-proof way of protecting HTML.

Just an example for this equation of pros and cons. The very simple "encryption" performed e.g. here
will probably be sufficient for 90% of all users/visitors, but it takes seconds to reverse by simply unescaping the main resulting string. And still, it will make the site unaccessible for users with javascript disabled, even if the site itself doesn't depend on js...

tantan6611Author Commented:

My site depends on JS so user has to enable it as a defult in order to view the contents.
However my main target is to hide a swf file source by encrypting its html code....so we are talking about partial encryption...But if you are saying that its an easy job to decrypt; so its better not to use this option.
Forced accept.

EE Admin

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now