Skip to content

[Bug]: 聊天记录中的图片无法解密 #819

@oversizexl

Description

@oversizexl

提交前确认

  • 我已搜索过现有的 Issues,确认这不是重复问题
  • 我使用的是最新版本
  • 我已阅读过相关文档

使用平台

macOS

问题严重程度

严重崩溃或数据丢失(无法使用)

问题描述

解密图片失败

复现步骤

  1. 登录wx后,点击聊天记录的 3-4 张大图
  2. 进入设置,点击内存扫描
  3. 进入私聊界面,点击解密图片
  4. 解密失败

预期行为

解密图片成功

实际行为

解密失败

错误日志或截图

[2026-04-22T04:37:17.408Z] [ImageDecrypt] 开始解密图片 {"md5":"0ceb379e63f8bd68f600f21d0c9ca0be","datName":"42a32a5623bae2f8587475b3a51aee76","force":true,"hardlinkOnly":false}
[2026-04-22T04:37:17.424Z] [ImageDecrypt] [ImageDecrypt] resolveDatPath {"imageMd5":"0ceb379e63f8bd68f600f21d0c9ca0be","imageDatName":"42a32a5623bae2f8587475b3a51aee76","allowThumbnail":false,"skipResolvedCache":true,"hardlinkOnly":false}
[2026-04-22T04:37:17.436Z] [ImageDecrypt] [ImageDecrypt] hardlink lookup (md5) {"imageMd5":"0ceb379e63f8bd68f600f21d0c9ca0be","sessionId":"wxid_8wdyn251jqa322"}
[2026-04-22T04:37:17.448Z] [ImageDecrypt] [ImageDecrypt] hardlink miss (md5) {"imageMd5":"0ceb379e63f8bd68f600f21d0c9ca0be"}
[2026-04-22T04:37:17.457Z] [ImageDecrypt] [ImageDecrypt] hardlink fallback (datName) {"imageDatName":"42a32a5623bae2f8587475b3a51aee76","sessionId":"wxid_8wdyn251jqa322"}
[2026-04-22T04:37:17.466Z] [ImageDecrypt] [ImageDecrypt] hardlink miss (datName) {"imageDatName":"42a32a5623bae2f8587475b3a51aee76"}
[2026-04-22T04:37:17.478Z] [ImageDecrypt] [ImageDecrypt] searchDatFile hit {"imageDatName":"42a32a5623bae2f8587475b3a51aee76","searchName":"42a32a5623bae2f8587475b3a51aee76","path":"/Users/sherlock/Library/Containers/com.tencent.xinWeChat/Data/Documents/xwechat_files/w0haoxihuanni_916f/msg/attach/d5da8cc12a017ec15cd7bff1d8aba6a6/2026-04/Img/42a32a5623bae2f8587475b3a51aee76.dat"}
[2026-04-22T04:37:17.488Z] [ImageDecrypt] 找到DAT文件 {"datPath":"/Users/sherlock/Library/Containers/com.tencent.xinWeChat/Data/Documents/xwechat_files/w0haoxihuanni_916f/msg/attach/d5da8cc12a017ec15cd7bff1d8aba6a6/2026-04/Img/42a32a5623bae2f8587475b3a51aee76.dat"}
[2026-04-22T04:37:17.507Z] [ImageDecrypt] 开始解密DAT文件 {"datPath":"/Users/sherlock/Library/Containers/com.tencent.xinWeChat/Data/Documents/xwechat_files/w0haoxihuanni_916f/msg/attach/d5da8cc12a017ec15cd7bff1d8aba6a6/2026-04/Img/42a32a5623bae2f8587475b3a51aee76.dat","xorKey":121,"hasAesKey":true}
[2026-04-22T04:37:17.516Z] [ImageDecrypt] ERROR: 解密失败 Error: Error: PKCS7 填充长度非法 {"md5":"0ceb379e63f8bd68f600f21d0c9ca0be","datName":"42a32a5623bae2f8587475b3a51aee76"}
[2026-04-22T04:37:17.527Z] [ImageDecrypt] 开始解密图片 {"datName":"108","force":false,"hardlinkOnly":false}
[2026-04-22T04:37:17.535Z] [ImageDecrypt] [ImageDecrypt] resolveDatPath {"imageDatName":"108","allowThumbnail":true,"skipResolvedCache":false,"hardlinkOnly":false}
[2026-04-22T04:37:17.541Z] [ImageDecrypt] [ImageDecrypt] searchDatFile hit {"imageDatName":"108","searchName":"108","path":"/Users/sherlock/Library/Containers/com.tencent.xinWeChat/Data/Documents/xwechat_files/w0haoxihuanni_916f/msg/attach/d5da8cc12a017ec15cd7bff1d8aba6a6/2024-08/Img/b40d8d7190d3fa543108f95012dc407e_h.dat"}
[2026-04-22T04:37:17.545Z] [ImageDecrypt] 找到DAT文件 {"datPath":"/Users/sherlock/Library/Containers/com.tencent.xinWeChat/Data/Documents/xwechat_files/w0haoxihuanni_916f/msg/attach/d5da8cc12a017ec15cd7bff1d8aba6a6/2024-08/Img/b40d8d7190d3fa543108f95012dc407e_h.dat"}
[2026-04-22T04:37:17.555Z] [ImageDecrypt] 开始解密DAT文件 {"datPath":"/Users/sherlock/Library/Containers/com.tencent.xinWeChat/Data/Documents/xwechat_files/w0haoxihuanni_916f/msg/attach/d5da8cc12a017ec15cd7bff1d8aba6a6/2024-08/Img/b40d8d7190d3fa543108f95012dc407e_h.dat","xorKey":121,"hasAesKey":true}
[2026-04-22T04:37:17.562Z] [ImageDecrypt] ERROR: 解密失败 Error: Error: PKCS7 填充长度非法 {"datName":"108"}

操作系统版本

macOS 14.6.1

应用版本

V4.3.1

系统架构

arm64

补充信息

wx版本:V4.1.8
Image

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: needs info缺少复现步骤或报错日志,等待提问者补充type: bug代码问题

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions