File Encryption

Contents

Simple file encryption for Cordova.

https://github.com/disusered/cordova-safe

Ionic 文件加密File Encryption插件的安装(Installation)

ionic cordova plugin add cordova-safe npm install @ionic-native/file-encryption

Ionic 文件加密File Encryption插件支持的平台(Supported Platforms)

  • Android
  • iOS

Ionic 文件加密File Encryption插件的用法(Usage)

import { FileEncryption } from '@ionic-native/file-encryption';


constructor(private fileEncryption: FileEncryption) { }

...

this.fileEncryption.decrypt('assets/json/topSecret.json', 'secretKey');

this.fileEncryption.encrypt('assets/json/topSecret.json', 'secretKey');