doc: fix default encoding mention in crypto.md · nodejs/node@561958e

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])