Skip to content

Commit 561958e

Browse files
hugnosisjasnell
authored andcommitted
doc: fix default encoding mention in crypto.md
The default encoding for crypto methods was changed in v6.0.0 with v4.x keeping a default of binary. PR-URL: #7805 Reviewed-By: Claudio Rodriguez <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 488d28d commit 561958e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/crypto.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ recent OpenSSL releases, `openssl list-cipher-algorithms` will display the
913913
available cipher algorithms.
914914

915915
The `key` is the raw key used by the `algorithm` and `iv` is an
916-
[initialization vector][]. Both arguments must be `'latin1'` encoded strings or
916+
[initialization vector][]. Both arguments must be `'utf8'` encoded strings or
917917
[buffers][`Buffer`].
918918

919919
### crypto.createCredentials(details)
@@ -968,7 +968,7 @@ recent OpenSSL releases, `openssl list-cipher-algorithms` will display the
968968
available cipher algorithms.
969969

970970
The `key` is the raw key used by the `algorithm` and `iv` is an
971-
[initialization vector][]. Both arguments must be `'latin1'` encoded strings or
971+
[initialization vector][]. Both arguments must be `'utf8'` encoded strings or
972972
[buffers][`Buffer`].
973973

974974
### crypto.createDiffieHellman(prime[, prime_encoding][, generator][, generator_encoding])

0 commit comments

Comments
 (0)