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 68ccc7a

Browse filesBrowse files
sstern6Myles Borins
authored andcommitted
doc: update reference to list hash algorithms in crypto.md
PR-URL: #9043 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent f9b24f4 commit 68ccc7a
Copy full SHA for 68ccc7a

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+8
-7
lines changed
Open diff view settings
Collapse file

‎doc/api/crypto.md‎

Copy file name to clipboardExpand all lines: doc/api/crypto.md
+8-7Lines changed: 8 additions & 7 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1209,18 +1209,18 @@ input.on('readable', () => {
12091209
added: v0.1.92
12101210
-->
12111211

1212-
Creates and returns a `Sign` object that uses the given `algorithm`. On
1213-
recent OpenSSL releases, `openssl list-public-key-algorithms` will
1214-
display the available signing algorithms. One example is `'RSA-SHA256'`.
1212+
Creates and returns a `Sign` object that uses the given `algorithm`.
1213+
Use [`crypto.getHashes()`][] to obtain an array of names of the available
1214+
signing algorithms.
12151215

12161216
### crypto.createVerify(algorithm)
12171217
<!-- YAML
12181218
added: v0.1.92
12191219
-->
12201220

1221-
Creates and returns a `Verify` object that uses the given algorithm. On
1222-
recent OpenSSL releases, `openssl list-public-key-algorithms` will
1223-
display the available signing algorithms. One example is `'RSA-SHA256'`.
1221+
Creates and returns a `Verify` object that uses the given algorithm.
1222+
Use [`crypto.getHashes()`][] to obtain an array of names of the available
1223+
signing algorithms.
12241224

12251225
### crypto.getCiphers()
12261226
<!-- YAML
@@ -1288,7 +1288,8 @@ console.log(alice_secret == bob_secret);
12881288
added: v0.9.3
12891289
-->
12901290

1291-
Returns an array with the names of the supported hash algorithms.
1291+
Returns an array of the names of the supported hash algorithms,
1292+
such as `RSA-SHA256`.
12921293

12931294
Example:
12941295

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.