(password: string)
| 126 | * @Author: 白雾茫茫丶 |
| 127 | */ |
| 128 | export const encryptionAesPsd = (password: string): string => { |
| 129 | const encrypted = CryptoJS.AES.encrypt(password, CRYPTO_KEY, { |
| 130 | iv: CRYPTO_IV, |
| 131 | mode: CryptoJS.mode.CBC, |
| 132 | padding: CryptoJS.pad.Pkcs7, |
| 133 | }); |
| 134 | return encrypted.toString(); // 返回的是base64格式的密文 |
| 135 | }; |
| 136 | |
| 137 | /** |
| 138 | * @description: AES/DES解密 |
no outgoing calls
no test coverage detected