I am trying to encrypt some data as shown below:
let cipherText = CryptoJS.AES.encrypt(phrase, this.encryptionKey, {iv: initializationV});
But when I check the IV after encryption by using cipherText.iv, it does not match the IV that I used.
I am generating the IV as given below:
let initializationV = CryptoJS.lib.WordArray.random(16);
What is the issue over here?