MCPcopy Create free account
hub / github.com/Effect-TS/effect / bytesOf

Function bytesOf

packages/sql/pg/src/PgAuth.ts:53–53  ·  view source on GitHub ↗
(value: Uint8Array)

Source from the content-addressed store, hash-verified

51const maxScramIterations = 1_000_000
52
53const bytesOf = (value: Uint8Array): Uint8Array => Uint8Array.from(value)
54
55const sha256 = (data: Uint8Array): Uint8Array => bytesOf(createHash("sha256").update(data).digest())
56

Callers 3

sha256Function · 0.70
hmacSha256Function · 0.70
scramContinueUnsafeFunction · 0.70

Calls 1

fromMethod · 0.80

Tested by

no test coverage detected