src/util/crypto.ts
import { createHash } from "node:crypto";
export function sha256(buf: Buffer): string {
return createHash("sha256").update(buf).digest("hex");
}
src/util/crypto.tsimport { createHash } from "node:crypto";
export function sha256(buf: Buffer): string {
return createHash("sha256").update(buf).digest("hex");
}