From 561958e56562f0eaf67fd05e099048d262ee7d14 Mon Sep 17 00:00:00 2001 From: hugnosis Date: Wed, 20 Jul 2016 15:45:43 +0900 Subject: [PATCH] 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: https://github.com/nodejs/node/pull/7805 Reviewed-By: Claudio Rodriguez Reviewed-By: James M Snell --- doc/api/crypto.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/crypto.md b/doc/api/crypto.md index 1c4e825d4e29fb..2ee17ae0378a1d 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -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) @@ -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])