| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3783,6 +3783,8 @@ using the given `algorithm`. Optional `options` argument controls stream | |||
| 3783 | 3783 | behavior. For XOF hash functions such as `'shake256'`, the `outputLength` option | |
| 3784 | 3784 | can be used to specify the desired output length in bytes. | |
| 3785 | 3785 | ||
| 3786 | + When the data is small (< 5MB) and readily available, [`crypto.hash()`][] is usually faster. | ||
| 3787 | + | ||
| 3786 | 3788 | The `algorithm` is dependent on the available algorithms supported by the | |
| 3787 | 3789 | version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc. | |
| 3788 | 3790 | On recent releases of OpenSSL, `openssl list -digest-algorithms` will | |
@@ -6945,6 +6947,7 @@ See the [list of SSL OP Flags][] for details. | |||
| 6945 | 6947 | [`crypto.getCurves()`]: #cryptogetcurves | |
| 6946 | 6948 | [`crypto.getDiffieHellman()`]: #cryptogetdiffiehellmangroupname | |
| 6947 | 6949 | [`crypto.getHashes()`]: #cryptogethashes | |
| 6950 | + [`crypto.hash()`]: #cryptohashalgorithm-data-options | ||
| 6948 | 6951 | [`crypto.privateDecrypt()`]: #cryptoprivatedecryptprivatekey-buffer | |
| 6949 | 6952 | [`crypto.privateEncrypt()`]: #cryptoprivateencryptprivatekey-buffer | |
| 6950 | 6953 | [`crypto.publicDecrypt()`]: #cryptopublicdecryptkey-buffer | |
| Back | FazBrowse Home | New Git URL |
0 commit comments