diff options
author | Antoine du Hamel <duhamelantoine1995@gmail.com> | 2022-02-14 19:14:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-14 19:14:49 +0300 |
commit | 849991c6c47a0e05365feb4c9b1fb841924a5192 (patch) | |
tree | 056d4fc7618a0834f15afffa91aa013c37f13c0e /doc/api/globals.md | |
parent | b53f927a521e6bae7e12583634b4a21aef348f13 (diff) |
crypto: expose Web Crypto API on the global scope
PR-URL: https://github.com/nodejs/node/pull/41938
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
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Diffstat (limited to 'doc/api/globals.md')
-rw-r--r-- | doc/api/globals.md | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/doc/api/globals.md b/doc/api/globals.md index 1fa6801dda6..f4ea4fb4747 100644 --- a/doc/api/globals.md +++ b/doc/api/globals.md @@ -307,6 +307,43 @@ added: v0.1.100 Used to print to stdout and stderr. See the [`console`][] section. +## `Crypto` + +<!-- YAML +added: REPLACEME +--> + +> Stability: 1 - Experimental. Enable this API with the +> [`--experimental-global-webcrypto`][] CLI flag. + +A browser-compatible implementation of {Crypto}. This global is available +only if the Node.js binary was compiled with including support for the +`crypto` module. + +## `crypto` + +<!-- YAML +added: REPLACEME +--> + +> Stability: 1 - Experimental. Enable this API with the +> [`--experimental-global-webcrypto`][] CLI flag. + +A browser-compatible implementation of the [Web Crypto API][]. + +## `CryptoKey` + +<!-- YAML +added: REPLACEME +--> + +> Stability: 1 - Experimental. Enable this API with the +> [`--experimental-global-webcrypto`][] CLI flag. + +A browser-compatible implementation of {CryptoKey}. This global is available +only if the Node.js binary was compiled with including support for the +`crypto` module. + ## `Event` <!-- YAML @@ -534,6 +571,19 @@ added: v17.0.0 The WHATWG [`structuredClone`][] method. +## `SubtleCrypto` + +<!-- YAML +added: REPLACEME +--> + +> Stability: 1 - Experimental. Enable this API with the +> [`--experimental-global-webcrypto`][] CLI flag. + +A browser-compatible implementation of {SubtleCrypto}. This global is available +only if the Node.js binary was compiled with including support for the +`crypto` module. + ## `DOMException` <!-- YAML @@ -598,7 +648,9 @@ The object that acts as the namespace for all W3C [WebAssembly][webassembly-org] related functionality. See the [Mozilla Developer Network][webassembly-mdn] for usage and compatibility. +[Web Crypto API]: webcrypto.md [`--experimental-fetch`]: cli.md#--experimental-fetch +[`--experimental-global-webcrypto`]: cli.md#--experimental-global-webcrypto [`AbortController`]: https://developer.mozilla.org/en-US/docs/Web/API/AbortController [`DOMException`]: https://developer.mozilla.org/en-US/docs/Web/API/DOMException [`EventTarget` and `Event` API]: events.md#eventtarget-and-event-api |