Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Workers crypto

Enabling and using the Node.js crypto module within Cloudflare Workers for cryptographic operations such as hashing, encryption, and digital signatures.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers crypto

Enabling and using the Node.js crypto module within Cloudflare Workers for cryptographic operations such as hashing, encryption, and digital signatures.

When To Use

Use when you need to implement Node.js-style cryptographic functions like HMAC, cipher, or signing within a Cloudflare Workers environment using the nodejscompat flag.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-runtime-apis-nodejs-crypto-workflow-guide.mdDocumentation explaining how to enable and use the Node.js crypto API within Cloudflare Workers using the nodejs_compat compatibility flag.Questions about documentation explaining how to enable and use the Node.js crypto API within Cloudflare Workers using the nodejscompa...

What This Skill Covers

  • To enable built-in Node.js APIs and polyfills, add the nodejs\compat compatibility flag to your Wrangler configuration file. This also enables nodejs\compat...

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://developers.cloudflare.com/workers/runtime-apis/nodejs/crypto