diff options
author | Tobias Nießen <tniessen@tnie.de> | 2022-09-10 23:19:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-10 23:19:36 +0300 |
commit | 22b9a0c4ba57aa862a24773220603de14e89fe42 (patch) | |
tree | 2328956777a49a46e259d716a56e7759d5276ea8 /doc | |
parent | a165193c5c8e4bcfbd12b2c3f6e55a81a251c258 (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')
-rw-r--r-- | doc/api/crypto.md | 4 |
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: |