feat: initial release of NASG

This commit is contained in:
UltraLionFr
2025-08-20 22:56:16 +02:00
parent 34af26c8ea
commit 586c1a9720
21 changed files with 540 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
export function generateSecret(bytes = 32): string {
const arr = new Uint8Array(bytes);
crypto.getRandomValues(arr);
let bin = "";
arr.forEach((b) => (bin += String.fromCharCode(b)));
return btoa(bin);
}