Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0747fac

Browse filesBrowse 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 <luigipinca@gmail.com> Reviewed-By: theanarkh <theratliter@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 370b0ec commit 0747fac
Copy full SHA for 0747fac

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎doc/api/crypto.md‎

Copy file name to clipboardExpand all lines: doc/api/crypto.md
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.