feat: 초기 프로젝트 설정 및 룰.md 파일 추가
This commit is contained in:
17
api.hyungi.net/node_modules/@simplewebauthn/server/esm/helpers/convertAAGUIDToString.js
generated
vendored
Normal file
17
api.hyungi.net/node_modules/@simplewebauthn/server/esm/helpers/convertAAGUIDToString.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
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('-');
|
||||
}
|
||||
Reference in New Issue
Block a user