Phase 1: lock cron, reload chaud, argon2, providers, IMDb lookup, cache LRU, /health, /metrics, rate limit, UI dark, biome
This commit is contained in:
15
tools/hashPassword.js
Normal file
15
tools/hashPassword.js
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env node
|
||||
// Generate an argon2id hash for the admin password.
|
||||
// Usage: node tools/hashPassword.js 'mon-mot-de-passe'
|
||||
// Then copy the output into .env as ADMIN_PASSWORD_HASH=...
|
||||
|
||||
import { hashPassword } from '../lib/password.js';
|
||||
|
||||
const plain = process.argv[2];
|
||||
if (!plain) {
|
||||
console.error("Usage: node tools/hashPassword.js '<mot-de-passe>'");
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const h = await hashPassword(plain);
|
||||
console.log(h);
|
||||
Reference in New Issue
Block a user