Skip to content

Commit 0075853

Browse files
tniessenjuanarbol
authored andcommitted
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: #44539 PR-URL: #44585 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: theanarkh <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent c3d6aba commit 0075853

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/crypto.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1175,12 +1175,12 @@ or `setPrivateKey()` methods.
11751175

11761176
```mjs
11771177
const { createDiffieHellmanGroup } = await import('node:crypto');
1178-
const dh = createDiffieHellmanGroup('modp1');
1178+
const dh = createDiffieHellmanGroup('modp16');
11791179
```
11801180

11811181
```cjs
11821182
const { createDiffieHellmanGroup } = require('node:crypto');
1183-
const dh = createDiffieHellmanGroup('modp1');
1183+
const dh = createDiffieHellmanGroup('modp16');
11841184
```
11851185

11861186
The following groups are supported:

0 commit comments

Comments
 (0)