mirror of
https://git.um-react.app/um/um-react.git
synced 2025-11-28 03:23:02 +00:00
Co-authored-by: 鲁树人 <lu.shuren@um-react.app> Co-committed-by: 鲁树人 <lu.shuren@um-react.app>
16 lines
429 B
TypeScript
16 lines
429 B
TypeScript
import { GetQingTingFMDeviceKeyPayload } from '~/decrypt-worker/types.ts';
|
|
import { QingTingFM } from '@unlock-music/crypto';
|
|
import { hex } from '~/util/hex.ts';
|
|
|
|
export async function workerGetQtfmDeviceKey({
|
|
device,
|
|
brand,
|
|
model,
|
|
product,
|
|
manufacturer,
|
|
board,
|
|
}: GetQingTingFMDeviceKeyPayload) {
|
|
const buffer = QingTingFM.getDeviceKey(device, brand, model, product, manufacturer, board);
|
|
return hex(buffer);
|
|
}
|