Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encrypt file at specific location only #89

Open
goelsmiti opened this issue Oct 17, 2019 · 3 comments
Open

Encrypt file at specific location only #89

goelsmiti opened this issue Oct 17, 2019 · 3 comments

Comments

@goelsmiti
Copy link

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.

@goelsmiti goelsmiti changed the title Encrypt some sepecifc files only Encrypt file at specific location only Oct 17, 2019
@alisonsi
Copy link

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>

@nomaam
Copy link

nomaam commented Apr 17, 2021

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>

@Filavision
Copy link

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants