Commit Graph
14 Commits
Author SHA1 Message Date
Suzu008 2ebf987648 refactor(cryptio): 重构密钥管理模块并优化加密功能
将密钥管理逻辑从 keys.py 迁移到 utils 模块,实现 KeyManager 单例类
新增 crypto_utils 模块集中管理加密/解密功能
优化混合加密方案实现,提高代码复用性和可维护性
2025-10-12 13:30:29 +08:00
Suzu008 6ed9ea5b1f refactor(crypto): 重构加密模块以支持不同密钥场景
- 将通用加密解密逻辑提取为内部函数
- 添加针对不同场景的加密解密方法(服务端/客户端密钥)
- 更新相关调用代码以使用新的加密方法
- 改进注释和类型定义
2025-10-12 07:04:20 +08:00
Suzu008 790907bdf6 feat(cryptio): 添加自动下载解密图片功能
为SaveImageCryptIO和PreviewImageCryptIO类添加auto_download参数,当设置为true时自动下载解密后的图片。同时在TS端实现自动下载逻辑,通过创建临时链接触发浏览器下载行为。
2025-10-12 06:21:15 +08:00
Suzu008 5f1f993559 feat(cryptio): 添加加密图片保存和预览功能
实现加密图片保存(SaveImageCryptIO)和预览(PreviewImageCryptIO)节点
修改上传组件支持加密文件直接上传
添加前端解密逻辑用于预览加密图片
2025-10-12 05:56:36 +08:00
Suzu008 b065ca33b6 feat(上传): 添加拖放和粘贴支持并重构上传逻辑
- 将上传逻辑提取为通用方法handleFileUpload
- 为上传组件添加拖放和粘贴支持
- 更新上传参数从image_upload改为file_upload
2025-10-12 03:57:16 +08:00
Suzu008 d449590ac3 fix: remove not exist arg 2025-10-12 01:29:37 +08:00
Suzu008 b2ef9c8f7a fix: get gcm key 2025-10-12 01:29:05 +08:00
Suzu008 355cd52d8c remote redundant code, remove original upload widget 2025-10-12 01:14:59 +08:00
Suzu008 e5d09afc01 view_encrypted respond with binary 2025-10-11 21:01:39 +08:00
Suzu008 a5ba357ed7 upload Image cryptio and key exchange 2025-10-11 18:46:44 +08:00
Suzu008 268d5559b4 uploadImage cryptIO temp 2025-10-11 18:33:16 +08:00
Suzu008 72eeea8dfa sepate files 2025-10-11 10:30:47 +08:00
Suzu008 7f1e7be330 all in one key file 2025-10-11 09:57:18 +08:00
Suzu008 e73210e612 first 2025-10-11 04:44:55 +08:00