Page 1 of 1

encrypt html source code

Posted: Tue May 09, 2006 11:01 pm
by kwansan
Hi,

This is pre-thought so my thoughts have some short comings  :).

Usually I do not encrypt html source codes due to some browser issues (if any).  However, there is a portion of my page I thought about encrypting.  Wanted to know if I generate encrypted code would I use it in the same manner as non encrypted html codes with cmsms or would I have to use {literal}{/literal} tags.  I could encrypt this portion and do php include with user defined tags.

Just a thought right now.  Wanted to know if anyone else had experiences with encrypted html and cmsms.  thanks !

Sincerely,
David

Re: encrypt html source code

Posted: Wed May 10, 2006 1:41 am
by Ted
I'm assuming by encrypt, you mean obfuscate the html so that a machine can't screen scrape it?  Most of that kind of trickery uses a lot of javascript.  I would think that it would be your best bet to toss {literal} tags around it, since there is a very good chance that smarty will try to pick that up.

And if I'm totally off of the mark of what you're talking about, please let me know.  :)

Re: encrypt html source code

Posted: Wed May 10, 2006 4:42 am
by cyberman
Haven't try it with current versions but in cmsms forge there's a module named CodeMangler which make it possible to scramble code.