Improve admin password hash

This commit is contained in:
Dominic Ferrando
2026-07-18 01:54:23 -04:00
parent 38855af45d
commit 529e011dd2
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -1,4 +1,5 @@
import cluster from 'node:cluster';
import { createHash } from 'node:crypto';
import { pino } from 'pino';
export const log = pino({
@@ -46,3 +47,5 @@ function optionEnv(key: string, fallback: string = ""): string {
};
return val;
}
export const sha256Sum = (s: string) => createHash("sha256").update(s).digest();