不依赖远端文件实现 KGM 解锁(内嵌 ~1K 的 mask 表数据) #2
No reviewers
Labels
No Label
bug
crypto
duplicate
enhancement
help wanted
invalid
platform-android
platform-mac
platform-win
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Total Time Spent: 8 hours
Due Date
jixunmoe
8 hours
No due date set.
Dependencies
No dependencies set.
Reference: um/web#2
Loading…
Reference in New Issue
No description provided.
Delete Branch ":master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
把内置的 mask 改成了调用
@jixun/kugou-crypto
包,代码在 https://github.com/jixunmoe/kugou-crypto 。可以调用这个仓库里的
src/cli/generate-mask.ts
来生成完整mask
文件并与 @um/cli 仓库的文件进行对比来验证算法的完整性。本地测试了下,能正常解锁 100M+ 大小的 kgm 与 vpr 文件(不过不能识别 dff 后缀),这个就没处理了。
两个表其实本来也想压缩下,但感觉没有什么意义… 数据可以对半分,前半结尾的 8 个
08
字节像是加密后的 padding,后半则是前半进行了 xor。意义不明。