Just run the code on an internal server that has no access to the internets and you should be fine. As long as nobody can get to the site, nobody can look at your code.
-- Thadeus On Thu, Jul 29, 2010 at 12:08 PM, glimmung <phil.kil...@gmail.com> wrote: > Hi, > > On Jul 29, 5:07 pm, ilovesss2004 <yyiillu...@gmail.com> wrote: >> Now I know the web app will work just with the pyc files, and others >> can not view the source code from pyc files. But the source code can >> still be viewed in web browser (I mean the source code of html and >> javascript at the client side). Is there a method to encrypt the >> source code by a language that the web browser knows so that the >> source code will be unreadable but still readable to web browser? >> > > Not one that is effective - that simply isn't how the web works. > > There are utilities which advertise this ability, and which serve > pages to the browser as an encrypted block which is decrypted by > JavaScript in the browser, but they are useless because it is trivial > to see the unencrypted version after it has been processed by the > script - "view source" will show the encrypted data, tools like > FireBug will show the plain-text (e.g. post-decryption). > > The bottom line is that such schemes will only foil those who wouldn't > know what to do with the code in the first place, whereas they > represent no obstacle at all to anyone who has the slightest technical > savvy. Additionally, they will prevent anyone with e.g. NoScript or > sight-impaired people with text-to-speech systems from using your site > *AT ALL*. > > What are you afraid of? That is the real problem. > > -- > > Cheers, > > PhilK >