mirror of
https://github.com/morluto/rea.git
synced 2026-11-30 08:08:55 +00:00
5 lines
148 B
TypeScript
5 lines
148 B
TypeScript
import { createHash } from "node:crypto";
|
|
|
|
export const sha256 = (bytes: Uint8Array): string =>
|
|
createHash("sha256").update(bytes).digest("hex");
|