@ ionic-native / aes-256 не работает на платформе iOS - PullRequest
0 голосов
/ 25 сентября 2018

Я установил следующие плагины в мой проект Ionic 3: -

  1. cordova-plugin-aes256-encryption
  2. @ ionic-native / aes-256

пытается выполнить приведенный ниже код, но обнаружил, что он не работает на моем устройстве iOS

import { AES256 } from "@ionic-native/aes-256";
constructor(private aes256: AES256){}
this.aes256.encrypt(
                this.secureKey,
                this.secureIV,
                JSON.stringify(dataObject)
              )
              .then(res => {
                console.log("Encrypted Data:======> ", res);
                this.result= res; // it's not giving the encrypted output 
              })
              .catch((error: any) => console.error(error));
...