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

NodeCrypto unstable

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

Constructors

make

unstable
Since v1.0.0

The default Node.js Crypto service implementation.

Signature

declare const make: EffectCrypto.Crypto

Layers

layer

unstable
Since v1.0.0

Layer that provides the Node.js Crypto service implementation.

Signature

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