| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 25a6fb6 commit 57d2e48
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3510,7 +3510,7 @@ Computes the Diffie-Hellman secret based on a `privateKey` and a `publicKey`. | |||
| 3510 | 3510 | Both keys must have the same `asymmetricKeyType`, which must be one of `'dh'` | |
| 3511 | 3511 | (for Diffie-Hellman), `'ec'` (for ECDH), `'x448'`, or `'x25519'` (for ECDH-ES). | |
| 3512 | 3512 | ||
| 3513 | - ### `crypto.hash(algorith, data[, outputEncoding])` | ||
| 3513 | + ### `crypto.hash(algorithm, data[, outputEncoding])` | ||
| 3514 | 3514 | ||
| 3515 | 3515 | <!-- YAML | |
| 3516 | 3516 | added: | |
@@ -3520,7 +3520,7 @@ added: | |||
| 3520 | 3520 | > Stability: 1.2 - Release candidate | |
| 3521 | 3521 | ||
| 3522 | 3522 | * `algorithm` {string|undefined} | |
| 3523 | - * `data` {string|ArrayBuffer|Buffer|TypedArray|DataView} When `data` is a | ||
| 3523 | + * `data` {string|Buffer|TypedArray|DataView} When `data` is a | ||
| 3524 | 3524 | string, it will be encoded as UTF-8 before being hashed. If a different | |
| 3525 | 3525 | input encoding is desired for a string input, user could encode the string | |
| 3526 | 3526 | into a `TypedArray` using either `TextEncoder` or `Buffer.from()` and passing | |
| Back | FazBrowse Home | New Git URL |
0 commit comments