LoginSignup
23

More than 5 years have passed since last update.

Cordovaのファイル暗号化プラグインを作った

Last updated at Posted at 2015-07-22

CordovaはHTML等のソースファイルがそのまま配置されるので、中身が丸見えの状態です。
そのためファイルを暗号化するプラグインを作りました。
AES256-CBCで暗号化します。

cordova-plugin-crypt-file

使い方

cordova plugin add cordova-plugin-crypt-file
プラグイン追加して
cordova build
ビルド時に暗号化
cordova emulate [ios /android] or cordova run [ios / android]
実行時に複合化

という感じなので、プラグイン追加したらあとは勝手にやってくれます。

暗号化するファイル

暗号化するファイルは以下の通り。画像ファイル等は暗号化しません。
* .html
* .htm
* .css
* .js

対象プラットフォーム

  • iOS
  • Android
  • CrossWalk

以上。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
23