NodeCrypto.ts
NodeCrypto.ts overview
Section titled “NodeCrypto.ts overview”The NodeCrypto module provides the Node.js Crypto service layer for
Effect programs. Provide layer at the edge of a Node application,
CLI, script, or test to satisfy effect/Crypto with Node’s node:crypto
implementation for secure random bytes, UUID generation, random values, and
SHA digest operations.
This module is the public Node adapter around the shared Node-compatible implementation. Digest failures are reported as platform errors, and SHA-1 remains available only for interoperability with existing protocols.
Since v1.0.0
Exports Grouped by Category
Section titled “Exports Grouped by Category”layers
Section titled “layers”Layer that provides the Node.js Crypto service implementation.
Signature
declare const layer: Layer.Layer<Crypto.Crypto, never, never>Since v1.0.0