Hi Jonny, like all web based applications the JavaScript code for your app
is clearly visible to end users. You have the same options when using Gears
as you would with a normal web app. This includes obfuscating your code and
'minifying' it to make it less readable. The one thing you can't do when
using Gears is hide sensitive code on the server-side. There is no way to
encrypt your JavaScript code from Gears itself. You could probably jury-rig
your own client-side encryption, but it would be for moot since once the
JavaScript was unencrypted an enterprising developer could just look through
the unencrypted source in memory using something like Firebug.

On Sat, Jan 3, 2009 at 12:15 PM, jonny <[email protected]> wrote:

>
> I'm writing an ap that runs offline using gears but concerned about
> others being able to just copy the source from their offline version
> and rip it off.
>
> Is there any way to protect the source code so that this isn't
> possible?
>



-- 
Best,
 Brad

 [email protected]

Reply via email to