GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: mention crypto.hash() for better perf · nodejs/node@c879f91

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • crypto.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/crypto.md‎

Copy file name to clipboardExpand all lines: doc/api/crypto.md
+3Lines changed: 3 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -3773,6 +3773,8 @@ using the given `algorithm`. Optional `options` argument controls stream
37733773
behavior. For XOF hash functions such as `'shake256'`, the `outputLength` option
37743774
can be used to specify the desired output length in bytes.
37753775

3776+
When the data is small (< 5MB) and readily available, [`crypto.hash()`][] is usually faster.
3777+
37763778
The `algorithm` is dependent on the available algorithms supported by the
37773779
version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc.
37783780
On recent releases of OpenSSL, `openssl list -digest-algorithms` will
@@ -6925,6 +6927,7 @@ See the [list of SSL OP Flags][] for details.
69256927
[`crypto.getCurves()`]: #cryptogetcurves
69266928
[`crypto.getDiffieHellman()`]: #cryptogetdiffiehellmangroupname
69276929
[`crypto.getHashes()`]: #cryptogethashes
6930+
[`crypto.hash()`]: #cryptohashalgorithm-data-options
69286931
[`crypto.privateDecrypt()`]: #cryptoprivatedecryptprivatekey-buffer
69296932
[`crypto.privateEncrypt()`]: #cryptoprivateencryptprivatekey-buffer
69306933
[`crypto.publicDecrypt()`]: #cryptopublicdecryptkey-buffer

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.