Skip to content

Commit 94a8b12

Browse files
committed
improvement(sns-media): 内置 WeFlow WASM 资源并切换朋友圈图片解密实现
- 内置 wasm_video_decode 资源并纳入打包 - Node helper 优先使用包内 weflow_wasm 目录 - 朋友圈图片远程解密改为走 WeFlow WxIsaac64 全量 XOR - 补充对应测试并更新纯 Python fallback 说明
1 parent 3b34e78 commit 94a8b12

8 files changed

Lines changed: 4887 additions & 137 deletions

File tree

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ include = [
4343
"src/wechat_decrypt_tool/native/VoipEngine.dll",
4444
"src/wechat_decrypt_tool/native/wcdb_api.dll",
4545
"src/wechat_decrypt_tool/native/WCDB.dll",
46+
"src/wechat_decrypt_tool/native/weflow_wasm/weflow_wasm_keystream.js",
47+
"src/wechat_decrypt_tool/native/weflow_wasm/wasm_video_decode.js",
48+
"src/wechat_decrypt_tool/native/weflow_wasm/wasm_video_decode.wasm",
4649
]
4750

4851
[tool.uv]

src/wechat_decrypt_tool/isaac64.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
still attempt to generate a keystream when the WASM helper is unavailable.
1111
1212
Notes:
13-
- Moments *image* decryption is handled via `wcdb_api.dll` (`wcdb_decrypt_sns_image`)
14-
because "ISAAC-64 full-file XOR" is not reliably reproducible for images across
15-
different versions/samples.
13+
- Production Moments image/video decryption should prefer the vendored
14+
WxIsaac64/WASM path. This pure-Python implementation is only a fallback when
15+
Node/WASM is unavailable.
1616
- This ISAAC-64 implementation may not perfectly match WxIsaac64; treat it as
1717
best-effort.
1818
"""

0 commit comments

Comments
 (0)