Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 021C510CF2 for ; Fri, 13 Feb 2015 22:42:11 +0000 (UTC) Received: (qmail 45335 invoked by uid 500); 13 Feb 2015 22:42:10 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 45295 invoked by uid 500); 13 Feb 2015 22:42:10 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 45282 invoked by uid 99); 13 Feb 2015 22:42:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Feb 2015 22:42:10 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of csantana23@gmail.com designates 209.85.223.170 as permitted sender) Received: from [209.85.223.170] (HELO mail-ie0-f170.google.com) (209.85.223.170) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Feb 2015 22:41:45 +0000 Received: by iecar1 with SMTP id ar1so23092941iec.0 for ; Fri, 13 Feb 2015 14:39:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Rs3Jd3z7aJkJ2C9nxWMS1sWpTdfnL7Pcf1fFz/FKJTQ=; b=b/WLMJYHdV/skhoHwdHEm9oHFfBiEKPlpWGB1uSmFXMP4/A0r0c3n6hgcANb7leQA4 fznnepjWmEQvIhRE+KZGhBVQTJQwbucd+K/6VhjCnrGMDBHn3jg2FoBO9OqsJfF4qHbQ EOTmEjVIlG+Ituao3qBLTAR9yTYqR9S+LLZDE81d/Kogg2x2a1bahuMv/Ay+cveryZEy YMngw57TMdiJ/Gz/tqSHlupM6Db+DGSTBk9YmgBzXm4yKANzoI53yuij+qGOvK/Icoh+ fYwvcOYiSXUCwGLbuYdnRKPznDOvf8ff59naQvli2GQipVnARJZ6p0tA13D3EeSG0Kt3 p6fw== MIME-Version: 1.0 X-Received: by 10.50.39.112 with SMTP id o16mr6922790igk.0.1423867168808; Fri, 13 Feb 2015 14:39:28 -0800 (PST) Received: by 10.107.137.40 with HTTP; Fri, 13 Feb 2015 14:39:28 -0800 (PST) In-Reply-To: References: Date: Fri, 13 Feb 2015 17:39:28 -0500 Message-ID: Subject: Re: Cordova generated .apk file encrypt From: Carlos Santana To: "dev@cordova.apache.org" Content-Type: multipart/alternative; boundary=047d7bdca2f4cde8ba050effe88d X-Virus-Checked: Checked by ClamAV on apache.org --047d7bdca2f4cde8ba050effe88d Content-Type: text/plain; charset=UTF-8 Danish, Like Joe said you can't encrypt your web code (i.e. javascript), at the end of the day it needs to be parse by the webview in plain text. Most you can do is obfuscate by using a tools like [1] uglifyjs to remove comments, and do minification, their are others this is just one. you can run uglifyjs automatically using a cordova cli hook, you can take a look here how people are using hooks in their cordova workflow [1]: https://github.com/mishoo/UglifyJS [2]: http://devgirl.org/2013/11/12/three-hooks-your-cordovaphonegap-project-needs/ On Fri, Feb 13, 2015 at 1:54 PM, Joe Bowser wrote: > Why is this a problem? We currently do not support this use case and do > not have any plans to as far as I'm aware. Anyone can unzip any APK and > dedex the code to see the Java as well. This often leads to hilarious > commentary on profanity in what people believed would be private code. > > If you have code that you wish to have secret, you really need to make sure > that logic exists entirely on the server side under your control. Trying > to use cryptography to hide your code on an Android project is probably > just going to end in tears. > > On Fri Feb 13 2015 at 10:50:47 AM Danish Khan wrote: > > > HI, > > > > First i would like to thank you for creating cordova. I have made one > > application which is based on jquery mobile base in cordova. The only > issue > > is i want to encrypt .apk file because any body can change .apk extension > > to .zip file & can view all the assest folder html files. i want to > encrypt > > that please guide me and help how can i encrypt that files. > > > > Your earlier reply will be highly appreciated > > > > Thanks & Regards, > > > > Danish > > > -- Carlos Santana --047d7bdca2f4cde8ba050effe88d--