Incorrect decrypted string implemented using AES/ECB/NoPadding and base 64 with crypto-js library
问题 I am trying to encrypt/decrypt the below data using crypto-js and getting unexpected results. Library: https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/crypto-js.min.js function encryptByAESECB(message, key) { var keyHex = CryptoJS.enc.Utf8.parse(key); var encrypted = CryptoJS.AES.encrypt(message, keyHex, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.NoPadding }); return encrypted.toString(); } function decryptByAESECB(ciphertext, key) { var keyHex = CryptoJS.enc.Utf8.parse(key); //