Skip to content

Commit

Permalink
doc: fix default encoding mention in crypto.md
Browse files Browse the repository at this point in the history
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 <cjrodr@yahoo.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
hugnosis authored and jasnell committed Aug 4, 2016
1 parent 488d28d commit 561958e
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 @@ -913,7 +913,7 @@ recent OpenSSL releases, `openssl list-cipher-algorithms` will display the
available cipher algorithms.

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

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

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

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

0 comments on commit 561958e

Please sign in to comment.