Encryption and Decryption using AES-CBC-128 technique

Hello Team,

I want to encrypt JSON data with secret key to 128 bit.
If I try to encrypt using crypto dependency its throwing below error.
I have also tried to encrypt with other available dependency but unable to form 128 bit encrypted.
Can you please help me on this.

Thanks in Advance
Pavithra Selvaraj

Hi @PavithraSelvaraj

Please include crypto module in the dependencies object of manifest.json and check.

"dependencies": {
    "crypto-js": "3.1.9-1"
  }

Regards,
Mughela Chandresh

3 Likes