function cryptoDecrypt_(e) { var t = n.crpytoConfig.AES_IV , o = n.crpytoConfig.AES_KEY , c = e.replace(/\_/g,"/").replace(/\-/g,"+") , a = CryptoJS.enc.Utf8.parse(o) , u = CryptoJS.enc.Utf8.parse(t) , p = CryptoJS.enc.Base64.parse(c) , f = CryptoJS.enc.Base64.stringify(p); return CryptoJS.AES.decrypt(f, a, { iv: u, mode: CryptoJS.mode.CBC, padding: CryptoJS.pad.Pkcs7 }).toString(CryptoJS.enc.Utf8).toString() } console.log(cryptoDecrypt_(str));