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

Function decryptionAesPsd

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

Source from the content-addressed store, hash-verified

140 * @Author: 白雾茫茫丶
141 */
142export 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: 退出登录返回到登录页

Callers 2

passwordStrengthFunction · 0.90
TableTemplateFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected