Files
NapCatQQ/.pnpm-store/v3/files/84/b930fe5a7cd7fcc5e4df15c576045e300b0aaa967d3ed5c4dc54630a59f846bff0d30988862c9cbfdfd32ff0dda56537e389f3207ea4076d9938227c99b7ee
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

18 lines
533 B
Plaintext

import { isoUint8Array } from './iso/index.js';
/**
* Convert the aaguid buffer in authData into a UUID string
*/
export function convertAAGUIDToString(aaguid) {
// Raw Hex: adce000235bcc60a648b0b25f1f05503
const hex = isoUint8Array.toHex(aaguid);
const segments = [
hex.slice(0, 8), // 8
hex.slice(8, 12), // 4
hex.slice(12, 16), // 4
hex.slice(16, 20), // 4
hex.slice(20, 32), // 8
];
// Formatted: adce0002-35bc-c60a-648b-0b25f1f05503
return segments.join('-');
}