Files
edgeKey/modules/auth/crypto.ts
2026-04-21 11:56:35 +08:00

6 lines
161 B
TypeScript

import { createHash } from "node:crypto";
export function hashAdminPassword(password: string) {
return createHash("sha256").update(password).digest("hex");
}