MCPcopy Create free account
hub / github.com/baiwumm/react-admin / encryptionAesPsd

Function encryptionAesPsd

Xmw_web/src/utils/index.ts:128–135  ·  view source on GitHub ↗
(password: string)

Source from the content-addressed store, hash-verified

126 * @Author: 白雾茫茫丶
127 */
128export 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解密

Callers 6

hanlderSubmitFunction · 0.90
hanlderSubmitFunction · 0.90
hanlderSubmitFunction · 0.90
handlerSubmitFunction · 0.90
handlerSubmitFunction · 0.90
LoginPageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected