Skip to main content

fastest way to covert qmc file

Project description

前言

这个库是专门用于解密QQ音乐加密音频

这里感谢: https://github.com/Presburger/qmc-decoder 大佬的解密算法,由于python处理的硬伤,处理效率低下,故使用C++封装了个python库供调用以解决该问题

如果对python的实现过程感兴趣可参考: https://github.com/rizhiyi/QQMusicDecoder/blob/master/src/decoder.py

功能说明

该库定义了一个函数 decrypt,用于负责解密文件,且只能对单个文件做解密,因为传参要注意

使用方法

from QQMusicDecrypt import decrypt
MusicFile = "/Users/rizhiyi/github/QQMusicDecoder/music/周杰伦-七里香.qmcflac"
CovertTime = decrypt(MusicFile)
# 单位秒
print(CovertTime)

返回信息

  1. 正常返回结果为解密耗时,单位:秒
  2. 异常返回为:[-6 : -1]
  • -1:failed to read file
  • -2:file seek failed
  • -3:create buffer error
  • -4:file read error
  • -5:failed to write file
  • -6:write file error

TODO

  • 支持直接解密指定目录文件

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for QQMusicDecrypt, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size QQMusicDecrypt-1.0.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View
Filename, size QQMusicDecrypt-1.0-cp39-cp39-macosx_10_9_x86_64.whl (45.6 kB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size QQMusicDecrypt-1.0-cp36-cp36m-manylinux1_x86_64.whl (562.4 kB) File type Wheel Python version cp36 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page