I used this online tool https://www.javainuse.com/aesgenerator to generate this example data:
const encryptedData = {
cipher: "OuCmv1nXCzfy+529oeJU8g==",
iv: "1234123412341234",
key: "56785678567856785678567856785678"
}
While encrypting the Mode selected is CBC, the Key Size is 256 bits, the output format is base64 in react native this is how I'm decrypting it:
let bytes = CryptoJS.AES.decrypt(encryptedData.cipher, encryptedData.key);
let originalText = JSON.parse(bytes.toString(CryptoJS.enc.Utf8));
console.log("Text is: " + originalText);
But all I'm getting is Text is: .
I used this online tool https://www.javainuse.com/aesgenerator to generate this example data:
While encrypting the Mode selected is
CBC, the Key Size is256bits, the output format isbase64in react native this is how I'm decrypting it:But all I'm getting is
Text is:.