Skip to content
Effect Days 2026 Get your ticket

NodeCrypto

Node-compatible implementation of Effect's Crypto service.

This module builds the service from node:crypto, using randomBytes for random data and createHash for supported digest algorithms. It exports make as the concrete service value and layer for providing it through Effect context.

2 exports Added in v1.0.0 Source

Constructors

make

Added in v1.0.0 Source

The default Node.js Crypto service implementation.

Signature

declare const make: EffectCrypto.Crypto

Layers

layer

Added in v1.0.0 Source

Layer that provides the Node.js Crypto service implementation.

Signature

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