$ ionic cordova plugin add cordova-plugin-aes256-encryption
$ npm install @awesome-cordova-plugins/aes-256
This cordova ionic plugin allows you to perform AES 256 encryption and decryption on the plain text. It's a cross-platform plugin which supports both Android and iOS. The encryption and decryption are performed on the device native layer so that the performance is much faster.