feat(auth): 微信手机号真实 AES 解密替换 MVP 占位
Some checks failed
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled

- login 阶段缓存 session_key(内存 HashMap,5 分钟 TTL)
- bind_phone 用 AES-128-CBC + PKCS7 解密 encryptedData 获取真实手机号
- 新增 workspace 依赖:aes, cbc, hex, base64
- 移除硬编码 "13800000000" 占位逻辑
This commit is contained in:
iven
2026-04-24 12:56:12 +08:00
parent 60a8a591a8
commit 6776a82926
3 changed files with 118 additions and 7 deletions

View File

@@ -83,6 +83,11 @@ async-trait = "0.1"
# HTTP client
reqwest = { version = "0.12", features = ["json"] }
# Crypto
aes = "0.8"
cbc = "0.1"
hex = "0.4"
# CSV and Excel export
csv = "1"
rust_xlsxwriter = "0.82"