How do I add Node:Crypto support for my Worker?
How, like literally how?
1 Reply
The only way is to use polyfills
https://developers.cloudflare.com/workers/wrangler/configuration/#add-polyfills-using-wrangler
If possible you are going to want to use https://developers.cloudflare.com/workers/runtime-apis/web-crypto as it is native to workers
Web Crypto · Cloudflare Workers docs
The Web Crypto API provides a set of low-level functions for common cryptographic tasks. The Workers Runtime implements the full surface of this API, …
Configuration · Cloudflare Workers docs
Wrangler optionally uses a wrangler.toml configuration file to customize the development and publishing setup for a Worker.