How bullet proof is HTML code encryption?

Posted on 2007-10-08
Last Modified: 2012-05-05
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?

Question by:tantan6611
    LVL 28

    Accepted 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.

    LVL 28

    Expert Comment

    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...


    Author Comment


    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 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.
    LVL 1

    Expert Comment

    Forced accept.

    EE Admin

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    SHARE your personal details only on a NEED to basis. Take CHARGE and SECURE your IDENTITY. How do I then PROTECT myself and stay in charge of my own Personal details (and) - MY own WAY...
    This story has been written with permission from the scammed victim, a valued client of mine – identity protected by request.
    In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
    In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now