(password: string)
| 140 | * @Author: 白雾茫茫丶 |
| 141 | */ |
| 142 | export const decryptionAesPsd = (password: string): string => { |
| 143 | const decrypted = CryptoJS.AES.decrypt(password, CRYPTO_KEY, { |
| 144 | iv: CRYPTO_IV, |
| 145 | mode: CryptoJS.mode.CBC, |
| 146 | padding: CryptoJS.pad.Pkcs7, |
| 147 | }); |
| 148 | return decrypted.toString(CryptoJS.enc.Utf8); // 返回的是解密后的字符串 |
| 149 | }; |
| 150 | |
| 151 | /** |
| 152 | * @description: 退出登录返回到登录页 |
no outgoing calls
no test coverage detected