How to decrypt with CryptoJS using AES?
问题 As the question suggests, I can't seem to get a decrypted value correctly using the required options (AES, ECB Mode & PKCS7). I'm encrypting as below: var ENC_KEY = "bXlrZXk="; //"mykey" var encrypted = CryptoJS.AES.encrypt("hello", CryptoJS.enc.Base64.parse(ENC_KEY), { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 }); console.log('encrypted: ' + encrypted); which works as expected and outputs the encrypted value I expect however when I decrypt this using the below, I end up with an