summaryrefslogtreecommitdiff
path: root/src/client/app/common/scripts/2fa.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/app/common/scripts/2fa.ts')
-rw-r--r--src/client/app/common/scripts/2fa.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/app/common/scripts/2fa.ts b/src/client/app/common/scripts/2fa.ts
new file mode 100644
index 0000000000..f638cce156
--- /dev/null
+++ b/src/client/app/common/scripts/2fa.ts
@@ -0,0 +1,5 @@
+export function hexifyAB(buffer) {
+ return Array.from(new Uint8Array(buffer))
+ .map(item => item.toString(16).padStart(2, 0))
+ .join('');
+}