File Encryption

Contents

Simple file encryption for Cordova.

Installation

ionic cordova plugin add cordova-safenpm 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=YOURPRODUCTKEYnpm 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');