feat(security): 实现登录密码 RSA 加密解密

- 在前端登录时对密码进行加密
- 在后端登录接口中对加密后的密码进行解密
- 新增 RsaUtils 工具类,用于 RSA 加密解密
- 优化了登录流程,提高了密码安全性
boardTest
zch 3 weeks ago
parent 5b04aff359
commit 799fbfce0a

@ -1,7 +1,9 @@
import request from '@/utils/request'
import { encrypt } from '@/utils/jsencrypt'
// 登录方法
export function login(username, password, code, uuid) {
password = encrypt(password);
const data = {
username,
password,

Loading…
Cancel
Save