Improve admin password hash
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user