Files
rea/tests/support/sha256.ts
T

5 lines
148 B
TypeScript

import { createHash } from "node:crypto";
export const sha256 = (bytes: Uint8Array): string =>
createHash("sha256").update(bytes).digest("hex");