Files
zkldi_Tachi/server/src/utils/crypto.ts
T

6 lines
145 B
TypeScript

import crypto from "crypto";
export function HashSHA256(content: Buffer) {
return crypto.createHash("sha256").update(content).digest("hex");
}