File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3773,6 +3773,8 @@ using the given `algorithm`. Optional `options` argument controls stream
37733773behavior. For XOF hash functions such as ` 'shake256' ` , the ` outputLength ` option
37743774can 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+
37763778The ` algorithm ` is dependent on the available algorithms supported by the
37773779version of OpenSSL on the platform. Examples are ` 'sha256' ` , ` 'sha512' ` , etc.
37783780On 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
You can’t perform that action at this time.
0 commit comments