Help us understand the problem. What is going on with this article?

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

More than 3 years have passed since last update.

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

cordova-plugin-crypt-file

https://www.npmjs.com/package/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

以上。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away