微信视频号视频解密工具 — 传入 URL + decodeKey,返回可播放的 H.264 MP4
Project description
wxipad-video
微信视频号视频解密工具。传入 CDN URL + decodeKey,返回可播放的 H.264 MP4。
安装
pip install wxipad-video
使用
Python
from wxipad_video import decrypt_video
mp4 = decrypt_video(url="http://wxapp.tc.qq.com/...", decode_key=683365944)
with open("video.mp4", "wb") as f:
f.write(mp4)
如果已下载加密文件:
from wxipad_video import decrypt_data
with open("encrypted.bin", "rb") as f:
encrypted = f.read()
mp4 = decrypt_data(encrypted, decode_key=683365944)
命令行
wxipad-decrypt "http://wxapp.tc.qq.com/..." 683365944 -o video.mp4
原理
微信视频号视频在 CDN 上部分加密存储:前 131072 字节(128KB)经 ISAAC64 流密码 XOR 加密,剩余部分为明文。本工具用 decodeKey 初始化 ISAAC64 生成密钥流,解密前 128KB 即可得到标准 MP4。
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wxipad_video-0.1.0.tar.gz
(3.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wxipad_video-0.1.0.tar.gz.
File metadata
- Download URL: wxipad_video-0.1.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
defc3cbf1d3bd50accacb18ed626459d529b0b47a5ee3a4203358adfa0dcfe53
|
|
| MD5 |
9e75bfe89d74882b771c6b7671e29924
|
|
| BLAKE2b-256 |
58073b29958774a32f7727d10b82cb1c88b4b92f3e7f9f281ce85b8b0ad266b9
|
File details
Details for the file wxipad_video-0.1.0-py3-none-any.whl.
File metadata
- Download URL: wxipad_video-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ebc9e561ca689ad09f3819e8def4013deea1d2d3d970a21ceddfa8c709e1e85d
|
|
| MD5 |
945b02549a37c38e587564c4c84e7849
|
|
| BLAKE2b-256 |
92c1ac68dfeb5d634371241acfff73c6cc803977d6be6d07b735fb075c6251b9
|