@ ionic-native / aes-256在iOS平台上不起作用

时间:2018-09-25 09:05:22

标签: ios cordova ionic-framework encryption aes

我已在Ionic 3项目中安装以下插件:-

  1. cordova-plugin-aes256-加密
  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));

0 个答案:

没有答案