Skip to content
Effect 4.0 is here. One ecosystem. Zero dependencies.

NodeCrypto unstable

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.

1 exports Since v1.0.0 Source

Layers

layer

unstable
Since v1.0.0

Layer that provides the Node.js Crypto service implementation.

Signature

declare const layer: Layer.Layer<Crypto.Crypto>