NSMP-Server / src /utils /sha256.ts
Franek-Le's picture
Commit
a86efc3
Raw
History Blame Contribute Delete
162 Bytes
import { createHash } from "node:crypto";
export function sha256(input: string | Buffer): string {
return createHash("sha256").update(input).digest("hex");
}