This plugin to encrypt the source files.
JavaScript Objective-C Java
Switch branches/tags
Clone or download
tkyaji Merge pull request #63 from GinjiBan/master
change android plugin dir
Latest commit 03a57e7 Mar 4, 2018

Cordova crypt file plugin

HTML source file is encrypted at build, and decrypted at run.

Add Plugin

cordova plugin add cordova-plugin-crypt-file


cordova build [ios / android]


cordova emulate [ios / android]
cordova run [ios / android]

Encryption subjects.


  • .html
  • .htm
  • .js
  • .css

Edit subjects

You can specify the encryption subjects by editing plugin.xml.


        <file regex="\.(htm|html|js|css)$" />
        <file regex="exclude_file\.js$" />

Specify the target file as a regular expression.

Supported platforms

  • iOS
  • Android
  • CrossWalk

Before reporting your issue

It would be very helpful if you show me your project (If you have GitHub repository, that URL would be nice). It is very hard for me to reporduce your enviroment.


Apache version 2.0