feat: add connector owner password auth
This commit is contained in:
@@ -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}`);
|
||||
Reference in New Issue
Block a user