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)
返回信息
- 正常返回结果为解密耗时,单位:秒
- 异常返回为:[-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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
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 QQMusicDecrypt-1.0.tar.gz.
File metadata
- Download URL: QQMusicDecrypt-1.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3db11205ee46f547be4fe59ddac4fde39b561c61d659ff17370c578a00acee6c
|
|
| MD5 |
efd40dac38539272663db2387ee5f7a3
|
|
| BLAKE2b-256 |
8b4a0785d01ae573cb223c5263a5732804474fd8788dec288f421dbf04dee690
|
File details
Details for the file QQMusicDecrypt-1.0-cp39-cp39-macosx_10_9_x86_64.whl.
File metadata
- Download URL: QQMusicDecrypt-1.0-cp39-cp39-macosx_10_9_x86_64.whl
- Upload date:
- Size: 45.6 kB
- Tags: CPython 3.9, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
647966083107087f8db25f1b44f985a879213091222b57b43b0156412130c2fe
|
|
| MD5 |
8cbff924de3a03ba079bd96f92013cff
|
|
| BLAKE2b-256 |
5d064872b38cdf72a842ff5a624f7789911551828a096c30bafc2e0b90eaef43
|
File details
Details for the file QQMusicDecrypt-1.0-cp36-cp36m-manylinux1_x86_64.whl.
File metadata
- Download URL: QQMusicDecrypt-1.0-cp36-cp36m-manylinux1_x86_64.whl
- Upload date:
- Size: 562.4 kB
- Tags: CPython 3.6m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f777ca509dd5ecb752839ed6e79385a71c5add84a79e43d82bc2eb2ae67fa562
|
|
| MD5 |
7a502e3169c45dca85ad950feba3bdca
|
|
| BLAKE2b-256 |
8cbc3ae9f1230de7c490a7ff2b52548cc191bdf6718a858e482cea06d48dadef
|