我已在Ionic 3项目中安装以下插件:-
尝试执行以下代码,但发现它无法在我的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));