Skip to main content

fastest way to covert ncm file

Project description

前言

这个库是专门用于解密网易云音乐加密音频

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

功能说明

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

使用方法

from NetEaseMusicDecrypt import decrypt
MusicFile = "/Users/rizhiyi/github/MusicDecoder/music/张宇-趁早.ncm"
CovertTime = decrypt(MusicFile)
# 单位秒
print(CovertTime)

返回信息

  • 解密正常时返回double型耗时时间
  • 解密异常则返回相关错误信息

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.

Source Distribution

NetEaseMusicDecrypt-1.0.tar.gz (27.1 kB view hashes)

Uploaded Source

Built Distributions

NetEaseMusicDecrypt-1.0-cp39-cp39-macosx_10_9_x86_64.whl (38.8 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

NetEaseMusicDecrypt-1.0-cp36-cp36m-manylinux1_x86_64.whl (149.7 kB view hashes)

Uploaded CPython 3.6m

Supported by

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