SYNTAX mfpdev app webencrypt DESCRIPTION Specifies that an encrypted version of the contents of the platform's wwww directory be created for deploying to mobile devices. Available for iOS and Android platforms only. The Cordova command 'cordova prepare' must have already been run on your app before you run this command. For iOS apps, the resulting encrypted file is named resources.zip and is placed in the directory /platforms/ios/www. For Android apps, one or more encrypted.zip files are created, depending on the total size of the web resources. These .zip files are named resource.zip.001 ...resource.zip.00n and placed in the directory app root>/platforms/android/assets/www. If the file size of a .zip file will be more than 1 MB, then a subsequent .zip file is created. After you run this command, you can package the encrypted web resources with the Cordova 'cordova compile' command. Important: Web resources will be regenerated without encryption when you invoke ‘cordova prepare’ or any command that invokes ‘cordova prepare’. Such commands include ‘cordova build’, ‘cordova run’, ‘cordova emulate’, ‘mfpdev app webupdate’, and ‘mfpdev app preview’. You must re-encrypt the resources after running any such command before you package. Note: An alternative to running this command is to run the --mfpwebencrypt option on the 'cordova build' or 'cordova compile' commands. You preface this option with a double '--'. For example: cordova build -- --mfpwebencrypt EXAMPLES iOS: directory $ mfpdev app webencrypt Creates the encrypted file 'resources.zip' in the directory /platforms/ios/www. You can now include this file when you build the package for testing or deployment. Android: $ mfpdev app webencrypt Creates .zip files that contain the encrypted web resources to deploy to the mobile device. In this example, the files are named resources.zip.001 and resources.zip.002, and are both placed in the directory /platforms/android/assets/www. You can now include these files when you build the package for testing or deployment.