zhangxiang
d5d04aa96d
feat: implement frontend-backend encrypted communication via AES-256-GCM
参考 novavis-authority 的加解密方案,实现前后端通信的应用层加密:
- 重写 src/lib/crypto.ts 使用 Web Crypto API(浏览器兼容),PBKDF2+AES-256-GCM
- 新增 src/lib/crypto-server.ts 服务端加解密工具(Node.js crypto)
- 新增 src/lib/api-crypto.ts API 路由中间件 withCrypto(),自动解密请求体/加密响应体
- 更新 src/lib/admin-api.ts 自动加密所有请求/解密响应
- 所有 11 个 admin API 路由文件已应用 withCrypto 包装器
- 更新 .env 文件,添加 NEXT_PUBLIC_ENCRYPTION_SECRET 和 ENCRYPTION_SECRET
2026-08-02 09:11:36 +08:00
..
2026-07-25 08:04:01 +08:00
2026-07-27 07:39:11 +08:00
2026-07-25 08:04:01 +08:00
2026-08-02 09:11:36 +08:00
2026-07-07 19:42:50 +08:00
2026-05-12 12:45:18 +08:00
2026-07-31 20:25:26 +08:00
2026-07-25 08:04:01 +08:00
2026-08-02 09:11:36 +08:00
2026-03-12 20:45:43 +08:00
2026-07-27 07:39:11 +08:00
2026-07-27 07:39:11 +08:00
2026-03-10 13:10:11 +08:00
2026-03-09 10:26:02 +08:00
2026-03-10 13:10:11 +08:00
2026-02-23 09:18:41 +08:00
2026-07-07 06:53:13 +08:00
2026-07-25 08:04:01 +08:00
2026-08-02 09:11:36 +08:00
2026-08-02 09:11:36 +08:00
2026-07-07 06:54:47 +08:00
2026-03-10 13:10:11 +08:00
2026-02-23 00:07:08 +08:00
2026-07-25 08:04:01 +08:00
2026-08-02 09:11:36 +08:00
2026-07-07 06:54:47 +08:00
2026-03-10 13:10:11 +08:00
2026-02-24 10:24:05 +08:00