Skip to content

crypto: expose Web Crypto API on the global scope

Expose the Web Crypto on the global scope, like it's done on browsers. When using this flag, the value of crypto no longer refer to require('node:crypto') in the REPL and in CLI eval context.

Refs: https://developer.mozilla.org/en-US/docs/Web/API/crypto_property Refs: https://github.com/nodejs/node/pull/41782 Refs: https://w3c.github.io/webcrypto

Merge request reports

Loading