feat: add connector owner password auth

This commit is contained in:
2026-08-03 14:23:14 +01:00
parent fb13120c94
commit f8b1724add
5 changed files with 32 additions and 5 deletions
+7
View File
@@ -0,0 +1,7 @@
import crypto from 'node:crypto';
const password = process.argv[2];
if (!password) throw new Error('Usage: node hash-password.js <password>');
const salt = crypto.randomBytes(16).toString('base64url');
const hash = crypto.scryptSync(password, salt, 32).toString('base64url');
console.log(`${salt}:${hash}`);