File Encryption

Contents

Simple file encryption for Cordova.

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

Stuck on a Cordova issue?

Installation

Community Enterprise
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

Supported Platforms

  • Android
  • iOS

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');