From 58c96f264b95154cb217b48afa988a2f1689520a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E6=A0=91=E4=BA=BA?= Date: Tue, 24 Sep 2024 22:19:30 +0000 Subject: [PATCH] =?UTF-8?q?Dependency=20upgrade=20+=20lib=5Fum=5Fcrypto=5F?= =?UTF-8?q?rust=20(#78)=20Co-authored-by:=20=E9=B2=81=E6=A0=91=E4=BA=BA=20?= =?UTF-8?q?=20Co-committed-by:=20=E9=B2=81?= =?UTF-8?q?=E6=A0=91=E4=BA=BA=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .run/test.run.xml | 12 + .run/vite dev.run.xml | 12 + README.MD | 10 +- docs/develop-with-libparakeet.zh.md | 50 - docs/develop-with-um_crypto.zh.md | 36 + package.json | 82 +- ...4.3.patch => @rollup__plugin-terser.patch} | 0 patches/{sql.js@1.9.0.patch => sql.js.patch} | 4 +- pnpm-lock.yaml | 6540 +++++++++-------- src/crypto/parseKuwo.ts | 27 - src/crypto/strlen.ts | 9 - src/decrypt-worker/Deciphers.ts | 85 + src/decrypt-worker/constants.ts | 2 + src/decrypt-worker/crypto/CryptoBase.ts | 17 - src/decrypt-worker/crypto/CryptoFactory.ts | 55 - src/decrypt-worker/crypto/kgm/kgm_pc.key.ts | 6 - src/decrypt-worker/crypto/kgm/kgm_pc.ts | 18 - .../kgm_type4_file_key_expansion_table.txt | 1 - .../kgm_type4_slot_key_expansion_table.txt | 1 - src/decrypt-worker/crypto/kwm/kwm.key.ts | 1 - src/decrypt-worker/crypto/kwm/kwm.ts | 28 - .../crypto/migu/migu3d_keyless.ts | 15 - src/decrypt-worker/crypto/ncm/ncm_pc.ts | 35 - src/decrypt-worker/crypto/qmc/qmc_v1.key.ts | 16 - src/decrypt-worker/crypto/qmc/qmc_v1.ts | 16 - src/decrypt-worker/crypto/qmc/qmc_v2.key.ts | 3 - src/decrypt-worker/crypto/qmc/qmc_v2.ts | 51 - src/decrypt-worker/crypto/qtfm/qtfm_device.ts | 25 - .../crypto/transparent/transparent.ts | 14 - src/decrypt-worker/crypto/xiami/xiami.ts | 51 - .../crypto/xmly/xmly_android.key.ts | 17 - .../crypto/xmly/xmly_android.ts | 29 - src/decrypt-worker/decipher/KugouMusic.ts | 33 + src/decrypt-worker/decipher/KuwoMusic.ts | 35 + src/decrypt-worker/decipher/Migu3d.ts | 27 + .../decipher/NetEaseCloudMusic.ts | 42 + src/decrypt-worker/decipher/QQMusic.ts | 74 + src/decrypt-worker/decipher/QingTingFM.ts | 37 + src/decrypt-worker/decipher/Transparent.ts | 18 + src/decrypt-worker/decipher/XiamiMusic.ts | 28 + src/decrypt-worker/decipher/Ximalaya.ts | 71 + src/decrypt-worker/types.ts | 19 +- src/decrypt-worker/util/audioType.ts | 26 + src/decrypt-worker/util/qmc2KeyCrypto.ts | 5 - src/decrypt-worker/util/transformBlob.ts | 38 - src/decrypt-worker/util/wasmClass.ts | 17 + src/decrypt-worker/worker.ts | 13 +- src/decrypt-worker/worker/decrypt.ts | 91 + src/decrypt-worker/worker/handler/decrypt.ts | 107 - .../worker/handler/qmcv2_parser.ts | 30 - .../worker/kuwo_header_parse.ts | 17 + src/decrypt-worker/worker/qmcv2_parser.ts | 15 + src/decrypt-worker/worker/qtfm_device_key.ts | 15 + src/features/file-listing/FileError.tsx | 7 +- src/features/file-listing/fileListingSlice.ts | 38 +- .../settings/panels/PanelQMCv2Key.tsx | 4 +- .../settings/panels/PanelQingTing.tsx | 40 +- src/features/settings/settingsSelector.ts | 10 +- src/util/MMKVParser.ts | 2 +- src/util/fnWrapper.ts | 21 +- src/util/formatHex.ts | 3 - src/util/go.ts | 7 + src/util/hex.ts | 15 + src/util/logUtils.ts | 6 +- vite.config.ts | 6 +- 65 files changed, 4160 insertions(+), 4025 deletions(-) create mode 100644 .run/test.run.xml create mode 100644 .run/vite dev.run.xml delete mode 100644 docs/develop-with-libparakeet.zh.md create mode 100644 docs/develop-with-um_crypto.zh.md rename patches/{@rollup__plugin-terser@0.4.3.patch => @rollup__plugin-terser.patch} (100%) rename patches/{sql.js@1.9.0.patch => sql.js.patch} (58%) delete mode 100644 src/crypto/parseKuwo.ts delete mode 100644 src/crypto/strlen.ts create mode 100644 src/decrypt-worker/Deciphers.ts delete mode 100644 src/decrypt-worker/crypto/CryptoBase.ts delete mode 100644 src/decrypt-worker/crypto/CryptoFactory.ts delete mode 100644 src/decrypt-worker/crypto/kgm/kgm_pc.key.ts delete mode 100644 src/decrypt-worker/crypto/kgm/kgm_pc.ts delete mode 100644 src/decrypt-worker/crypto/kgm/kgm_type4_file_key_expansion_table.txt delete mode 100644 src/decrypt-worker/crypto/kgm/kgm_type4_slot_key_expansion_table.txt delete mode 100644 src/decrypt-worker/crypto/kwm/kwm.key.ts delete mode 100644 src/decrypt-worker/crypto/kwm/kwm.ts delete mode 100644 src/decrypt-worker/crypto/migu/migu3d_keyless.ts delete mode 100644 src/decrypt-worker/crypto/ncm/ncm_pc.ts delete mode 100644 src/decrypt-worker/crypto/qmc/qmc_v1.key.ts delete mode 100644 src/decrypt-worker/crypto/qmc/qmc_v1.ts delete mode 100644 src/decrypt-worker/crypto/qmc/qmc_v2.key.ts delete mode 100644 src/decrypt-worker/crypto/qmc/qmc_v2.ts delete mode 100644 src/decrypt-worker/crypto/qtfm/qtfm_device.ts delete mode 100644 src/decrypt-worker/crypto/transparent/transparent.ts delete mode 100644 src/decrypt-worker/crypto/xiami/xiami.ts delete mode 100644 src/decrypt-worker/crypto/xmly/xmly_android.key.ts delete mode 100644 src/decrypt-worker/crypto/xmly/xmly_android.ts create mode 100644 src/decrypt-worker/decipher/KugouMusic.ts create mode 100644 src/decrypt-worker/decipher/KuwoMusic.ts create mode 100644 src/decrypt-worker/decipher/Migu3d.ts create mode 100644 src/decrypt-worker/decipher/NetEaseCloudMusic.ts create mode 100644 src/decrypt-worker/decipher/QQMusic.ts create mode 100644 src/decrypt-worker/decipher/QingTingFM.ts create mode 100644 src/decrypt-worker/decipher/Transparent.ts create mode 100644 src/decrypt-worker/decipher/XiamiMusic.ts create mode 100644 src/decrypt-worker/decipher/Ximalaya.ts create mode 100644 src/decrypt-worker/util/audioType.ts delete mode 100644 src/decrypt-worker/util/qmc2KeyCrypto.ts delete mode 100644 src/decrypt-worker/util/transformBlob.ts create mode 100644 src/decrypt-worker/util/wasmClass.ts create mode 100644 src/decrypt-worker/worker/decrypt.ts delete mode 100644 src/decrypt-worker/worker/handler/decrypt.ts delete mode 100644 src/decrypt-worker/worker/handler/qmcv2_parser.ts create mode 100644 src/decrypt-worker/worker/kuwo_header_parse.ts create mode 100644 src/decrypt-worker/worker/qmcv2_parser.ts create mode 100644 src/decrypt-worker/worker/qtfm_device_key.ts delete mode 100644 src/util/formatHex.ts create mode 100644 src/util/go.ts create mode 100644 src/util/hex.ts diff --git a/.run/test.run.xml b/.run/test.run.xml new file mode 100644 index 0000000..e3392be --- /dev/null +++ b/.run/test.run.xml @@ -0,0 +1,12 @@ + + + + + +