Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Nießen <tniessen@tnie.de>2022-09-10 23:19:36 +0300
committerGitHub <noreply@github.com>2022-09-10 23:19:36 +0300
commit22b9a0c4ba57aa862a24773220603de14e89fe42 (patch)
tree2328956777a49a46e259d716a56e7759d5276ea8 /doc/api/crypto.md
parenta165193c5c8e4bcfbd12b2c3f6e55a81a251c258 (diff)
doc: do not use weak MODP group in example
As a first, small step toward deprecating modp1, stop using it in an example that users might copy. Refs: https://github.com/nodejs/node/issues/44539 PR-URL: https://github.com/nodejs/node/pull/44585 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: theanarkh <theratliter@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'doc/api/crypto.md')
-rw-r--r--doc/api/crypto.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/crypto.md b/doc/api/crypto.md
index 66fb2f207bd..ad1b5a768a4 100644
--- a/doc/api/crypto.md
+++ b/doc/api/crypto.md
@@ -1175,12 +1175,12 @@ or `setPrivateKey()` methods.
```mjs
const { createDiffieHellmanGroup } = await import('node:crypto');
-const dh = createDiffieHellmanGroup('modp1');
+const dh = createDiffieHellmanGroup('modp16');
```
```cjs
const { createDiffieHellmanGroup } = require('node:crypto');
-const dh = createDiffieHellmanGroup('modp1');
+const dh = createDiffieHellmanGroup('modp16');
```
The following groups are supported: