Skip to content

NodeCrypto

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 Added in v1.0.0 Source

Layers

layer

Added in v1.0.0 Source

Layer that provides the Node.js Crypto service implementation.

Signature

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