AES
256
bitsConfigure → Cordova Plugin Settings
.Encrypt
plugin and click Enable
button.Configure
button.SECRET
TARGETS
www
folder (default) 。,
(comma).
Example: TARGETS=www/data,www/js!
(exclamation point). (5.1.0 or later)
Example: TARGETS=www/data,!www/jsAUTO_DECRYPT
1
: (default) for enabling auto decryption0
: for disabling auto decryptionmonaca.Encrypt.setDecryptHash()
function is executed. In other words, it can not be read with the script tag in index.html
file.AUTO_DECRYPT
to 0
in the plugin configuration (Step 4 in the previous section).monaca.Encrypt.setDecryptHash()
function to decrypt the target folder(s). The hash code can be found in the build log as follows:here
(as shown in the screenshot below) button to see the build log.deviceready
event. For example:monaca:scheme
and moanca:hostname
, they become monaca-plugin
and monaca.plugin
respectively.