Я установил следующие плагины в мой проект Ionic 3: -
- cordova-plugin-aes256-encryption
- @ 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));