File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3783,6 +3783,8 @@ using the given `algorithm`. Optional `options` argument controls stream
37833783behavior. For XOF hash functions such as ` 'shake256' ` , the ` outputLength ` option
37843784can be used to specify the desired output length in bytes.
37853785
3786+ When the data is small (< 5MB) and readily available, [ ` crypto.hash() ` ] [ ] is usually faster.
3787+
37863788The ` algorithm ` is dependent on the available algorithms supported by the
37873789version of OpenSSL on the platform. Examples are ` 'sha256' ` , ` 'sha512' ` , etc.
37883790On recent releases of OpenSSL, ` openssl list -digest-algorithms ` will
@@ -6945,6 +6947,7 @@ See the [list of SSL OP Flags][] for details.
69456947[ `crypto.getCurves()` ] : #cryptogetcurves
69466948[ `crypto.getDiffieHellman()` ] : #cryptogetdiffiehellmangroupname
69476949[ `crypto.getHashes()` ] : #cryptogethashes
6950+ [ `crypto.hash()` ] : #cryptohashalgorithm-data-options
69486951[ `crypto.privateDecrypt()` ] : #cryptoprivatedecryptprivatekey-buffer
69496952[ `crypto.privateEncrypt()` ] : #cryptoprivateencryptprivatekey-buffer
69506953[ `crypto.publicDecrypt()` ] : #cryptopublicdecryptkey-buffer
You can’t perform that action at this time.
0 commit comments