My CryptoJS encryption/decryption is not working
问题 I have an array of JSON arrays whose values I am trying to encrypt with CryptoJS and then print for use in another file, where these values should be decrypted using a user-given passphrase. But I am doing something wrong and I am getting "Uncaught Error: Malformed UTF-8 data" when decrypting the URL's. encrypt.js: var encrypted = CryptoJS.AES.encrypt(item[key], pass); json[j] += encrypted.ciphertext.toString(CryptoJS.enc.Base64); decrypt.js: var decrypted = CryptoJS.AES.decrypt(item[key],