cordova-plugin-crypt-file
cordova-plugin-crypt-file copied to clipboard
Encrypt file at specific location only
Hi,
I have implemented your plugin and it works like charm from the first time.
But i want to encrypt only .js file written by me and not the third party plugin. I have read your Edit subjects section. But i am not sure, how to provide path of .js file in /www folder only.
Please help.
This working for me :
In plugins\cordova-plugin-crypt-file\plugin.xml
<cryptfiles> <include> <file regex="\.(htm|html|js|css)$" /> </include> <exclude> <file regex="\plugins" /> </exclude> </cryptfiles>
is there a way to specify the exact files you want encrypted? or is just by folder names?
<include> <file myfilename=".\www\myCode.js" /> </include>
is there a way to specify the exact files you want encrypted? or is just by folder names?
<include> <file myfilename=".\www\myCode.js" /> </include>
You van use <include> <file myfilename="myCode1.js" /> <file myfilename="myCode2.js" /> </include>