mirror of
https://github.com/34892002/edgeKey.git
synced 2026-07-03 07:04:53 +08:00
6 lines
161 B
TypeScript
6 lines
161 B
TypeScript
import { createHash } from "node:crypto";
|
|
|
|
export function hashAdminPassword(password: string) {
|
|
return createHash("sha256").update(password).digest("hex");
|
|
}
|