You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am also get this error. However I am using a string value
let encrypted = "add_your_encrypted_value"
let key = "1234567890123456789012"
let ivValue = "add_iv_value"
let iv = CryptoJS.enc.Utf8.parse(ivValue)
var decrypted = CryptoJS.AES.decrypt(encrypted, key, {
iv: iv,
padding: CryptoJS.pad.Pkcs7,
mode: CryptoJS.mode.CBC
}).toString(CryptoJS.enc.Utf8);
error : Malformed UTF-8 data
The issue so far that I can tell is that encrypted contains symbol. It be nice for the CryptoJS.enc.Utf8, to check for the symbols and remove it.
When providing the correct passwords I get an exception on
saying
According to this comment maybe it helps to convert
encrypted
to stringThe text was updated successfully, but these errors were encountered: