README
Cordova crypt file plugin NextGen
This is an extension to tkyaji's cordova-plugin-crypt-file implementation to encrypt HTML assets during build and to decrypt the required assets during runtime.
The original implementation can also be found on https://www.npmjs.com/package/cordova-plugin-crypt-file.
Requires node-rsa
npm install -g node-rsa
Add Plugin
cordova plugin add cordova-plugin-crypt-assets
Encrypt
cordova build [ios / android]
Decrypt
cordova emulate [ios / android]
or
cordova run [ios / android]
Default
- .html
- .htm
- .js
- .css
Edit subjects
You can specify the encryption subjects by editing plugin.xml
.
config.xml
<cryptfiles>
<include>
<file regex="\.(htm|html|js|css)