Page 1 of 1

Question - HTML code encryption with php...

Posted: Mon May 29, 2006 12:53 am
by tecktalkcm0391
Is their anyway to make PHP take the HTML from its page and convert it into something like you can do at: http://www.dynamicdrive.com/dynamicindex9/encrypter.htm with your HTML. If this could happen, all our source codes would be protected.

Any ideas.

Posted: Mon May 29, 2006 4:28 am
by twigletmac
Yes - since all it's doing is encoding the special characters and running it through JavaScript. Wouldn't bother doing it myself though - is your HTML really that special?

Mac

Re: Question - HTML code encryption with php...

Posted: Mon May 29, 2006 6:48 am
by aerodromoi
tecktalkcm0391 wrote:Is their anyway to make PHP take the HTML from its page and convert it into something like you can do at: http://www.dynamicdrive.com/dynamicindex9/encrypter.htm with your HTML. If this could happen, all our source codes would be protected.

Any ideas.
You could also convert your source into base64 and decode it via javascript.
However, not all users have javascript enabled in their browsers.
Furthermore, encoding special chars or using base64 is next to worthless as you can easily decode it.

aerodromoi

Posted: Mon May 29, 2006 10:30 am
by Ambush Commander
HTML source code cannot be protected, period. You can try obfuscating it though (which may deter casual thieves)