mirror of
https://github.com/34892002/edgeKey.git
synced 2026-05-21 22:55:36 +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");
|
|
}
|