Skip to content

NodeCrypto.ts

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



Layer that provides the Node.js Crypto service implementation.

Signature

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

Source

Since v1.0.0