Skip to content

Commit

Permalink
fixup! crypto: implement crypto.hash()
Browse files Browse the repository at this point in the history
  • Loading branch information
joyeecheung committed Feb 26, 2024
1 parent cb7662b commit 1da2bb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/crypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -3521,8 +3521,8 @@ added:
* `data` {string|ArrayBuffer|Buffer|TypedArray|DataView} 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 could encode the string
into a TypedArray using either `TextEncoder` or `Buffer.from()` and passing
the encoded TypedArray into this API instead.
into a `TypedArray` using either `TextEncoder` or `Buffer.from()` and passing
the encoded `TypedArray` into this API instead.
* `outputEncoding` {string|undefined} [Encoding][encoding] used to encode the
returned digest. **Default:** `'hex'`.
* Returns: {string|Buffer}
Expand Down

0 comments on commit 1da2bb5

Please sign in to comment.