From e94ad82738c55939a09fa7c0b048c7a386bab42a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Sat, 10 Sep 2022 22:19:36 +0200 Subject: [PATCH] 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 Reviewed-By: theanarkh Reviewed-By: Rich Trott --- doc/api/crypto.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/crypto.md b/doc/api/crypto.md index 258f9c42044559..4f8fd387c74cbd 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: