Skip to content

NodeCrypto.ts

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.

Since v1.0.0



The default Node.js Crypto service implementation.

Signature

declare const make: EffectCrypto.Crypto

Source

Since v1.0.0

Layer that provides the Node.js Crypto service implementation.

Signature

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

Source

Since v1.0.0