Skip to content

Commit 34768bb

Browse files
committed
chore: update
1 parent 5cd9eb3 commit 34768bb

File tree

1 file changed

+1
-11
lines changed
  • src/renderer/utils/musicSdk/kw

1 file changed

+1
-11
lines changed

src/renderer/utils/musicSdk/kw/util.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -193,19 +193,9 @@ const createAesDecrypt = (buffer, mode, key, iv) => {
193193
return Buffer.concat([cipher.update(buffer), cipher.final()])
194194
}
195195

196-
const strToUint8Array = str => {
197-
const length = Math.floor(str.length / 2)
198-
const bArr = new Uint8Array(length)
199-
for (let i = 0; i < length; i++) {
200-
const i2 = i * 2
201-
bArr[i] = parseInt(str.substring(i2, i2 + 2), 16)
202-
}
203-
return bArr
204-
}
205-
206196
export const wbdCrypto = {
207197
aesMode: 'aes-128-ecb',
208-
aesKey: strToUint8Array('7057273DC7FA29BF39442D72DD5E8CE4'),
198+
aesKey: Buffer.from([112, 87, 39, 61, 199, 250, 41, 191, 57, 68, 45, 114, 221, 94, 140, 228], 'binary'),
209199
aesIv: '',
210200
appId: 'y67sprxhhpws',
211201
decodeData(base64Result) {

0 commit comments

Comments
 (0)