Flutter教程

File Encryption

Contents

Simple file encryption for Cordova.

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

联系我们?

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic's experts offer official maintenance, support, and integration help.

Contact Us Today!

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

ionic cordova plugin add cordova-safe npm install @ionic-native/file-encryption
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More or Contact Us
ionic enterprise register --key=YOURPRODUCTKEY npm install @ionic-enterprise/file-encryption

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

  • Android
  • iOS

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

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


constructor(private fileEncryption: FileEncryption) { }

...

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

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