(编辑:jimmy 日期: 2024/10/31 浏览:2)
function Decrypt(passwd) { let key = CryptoJS.enc.Utf8.parse("u2oh6Vu^HWe4_AES"); var decrypted = CryptoJS.AES.decrypt(passwd, key, { iv: CryptoJS.enc.Utf8.parse("u2oh6Vu^HWe4_AES"), mode: CryptoJS.mode.CBC, padding: CryptoJS.pad.Pkcs7 } ) return decrypted.toString(CryptoJS.enc.Utf8);}console.log(Decrypt("cDt6MblySvQIt0kTLdTUpA=="))