From 22b9a0c4ba57aa862a24773220603de14e89fe42 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 66fb2f207bd6ab..ad1b5a768a4128 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: