Skip to main content

微信视频号视频解密工具 — 传入 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


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.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wxipad_video-0.1.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file wxipad_video-0.1.1.tar.gz.

File metadata

  • Download URL: wxipad_video-0.1.1.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

Hashes for wxipad_video-0.1.1.tar.gz
Algorithm Hash digest
SHA256 bcbf71dc8bee0dcb9cabdfaa9709e3aa4188fd0cb7c047cc0fcf162fd9f7a47f
MD5 e50dd2462b41591767a09a7de770e2f2
BLAKE2b-256 1184687e14e871fa9d9db5119a7341f6a499cff1e60beb01bbdd5b650f092bb2

See more details on using hashes here.

File details

Details for the file wxipad_video-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: wxipad_video-0.1.1-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

Hashes for wxipad_video-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4f55f7099338f5a4ac76ed88ef7dc26925d87855a93244d770c1d71e60b494eb
MD5 d8a23db1b356dec783d1b6c1a4452349
BLAKE2b-256 6414b207a3ea8fc956a4cf64a50819fcf2dd349d6bb8322c1a5d3b44055a6de5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page