@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
ts 10 lines 407 Bytes
Raw
1 import { createHash } from "node:crypto";
2 import * as Effect from "effect/Effect";
3
4 /**
5 * MD5 hex digest of the given data. Wrapped in `Effect.sync` so the call
6 * participates in the Effect runtime (tracing/interruption) per the
7 * Effect-platform conventions.
8 */
9 export const md5 = (data: string | Uint8Array): Effect.Effect<string> =>
10 Effect.sync(() => createHash("md5").update(data).digest("hex"));