If you encrypt the HTML, the browser won't be able to recognize and display
the pages, only a lot of garbled text.
Browser based encryption is called HTTPS, but at some point it has to be
decrypted before the client's browser can display anything.
You can limit the number of people that will be able to view the source,
accepting only some specific certificates in you HTTPS server (given to
trusted clients).
If you want to have pages that no one can read, use Flash, but even then,
one can decompile your swf files.
The idea is, anything that can be read by some end can be "decrypted"
somehow.
So, you have to decide how valuable is your app, then spend
an equivalent sum to protect it, but if other people want it that badly they
can spend double that amount and break it.

Then again, you shouldn't be afraid that someone will steal your code,
because all they can see is HTML, CSS and JS, the python code is stored on
the server only, and rendered before any client can see. As Jean stated,
"open" is the standard for the web, if you want something other than that,
use another technology.

Julio

On Thu, Jul 29, 2010 at 11:23 AM, ilovesss2004 <yyiillu...@gmail.com> wrote:

> But the html files are also part of the web app. Is there someway to
> encrypt them by use of web2py or python programming?
>
>
>
> On Jul 29, 4:15 pm, Jean-Guy <jean...@gmail.com> wrote:
> > Of course yes! It is the HTML nature and the Web paradigm is based on
> > this state of affairs...
> >
> > Maybe the python code embeded could be compiled too, but really not sure
> > about that... Massimo could be a better help on that.
> >
> > Jonhy
> >
> > On 2010-07-29 10:12, ilovesss2004 wrote:
> >
> >
> >
> > > source code of html files are still viewable.
>

Reply via email to