You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* A utility for creating one-shot hash digests of data. It can be faster than the object-based `crypto.createHash()` when hashing a smaller amount of data
3368
-
* (<= 5MB) that's readily available. If the data can be big or if it is streamed, it's still recommended to use `crypto.createHash()` instead. The `algorithm`
3369
-
* is dependent on the available algorithms supported by the version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc. On recent releases
3370
-
* of OpenSSL, `openssl list -digest-algorithms` will display the available digest algorithms.
3385
+
* A utility for creating one-shot hash digests of data. It can be faster than
3386
+
* the object-based `crypto.createHash()` when hashing a smaller amount of data
3387
+
* (<= 5MB) that's readily available. If the data can be big or if it is streamed,
3388
+
* it's still recommended to use `crypto.createHash()` instead.
3389
+
*
3390
+
* The `algorithm` is dependent on the available algorithms supported by the
3391
+
* version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc.
3392
+
* On recent releases of OpenSSL, `openssl list -digest-algorithms` will
3393
+
* display the available digest algorithms.
3394
+
*
3395
+
* If `options` is a string, then it specifies the `outputEncoding`.
* @param data When `data` is a string, it will be encoded as UTF-8 before being hashed. If a different input encoding is desired for a string input, user
3391
-
* could encode the string into a `TypedArray` using either `TextEncoder` or `Buffer.from()` and passing the encoded `TypedArray` into this API instead.
3392
-
* @param [outputEncoding='hex'] [Encoding](https://nodejs.org/docs/latest-v24.x/api/buffer.html#buffers-and-character-encodings) used to encode the returned digest.
3415
+
* @param data When `data` is a string, it will be encoded as UTF-8 before being hashed. If a different
3416
+
* input encoding is desired for a string input, user could encode the string
3417
+
* into a `TypedArray` using either `TextEncoder` or `Buffer.from()` and passing
* Reads the contents of a directory. The callback gets two arguments `(err, files)` where `files` is an array of the names of the files in the directory excluding `'.'` and `'..'`.
0 commit comments