1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-12-25 12:08:16 +09:00
MisskeyIO/src/client/scripts/2fa.ts

6 lines
144 B
TypeScript
Raw Normal View History

export function hexifyAB(buffer) {
return Array.from(new Uint8Array(buffer))
.map(item => item.toString(16).padStart(2, '0'))
.join('');
}