From 9051f367579dc8e73f79da9e00830941fec0007b Mon Sep 17 00:00:00 2001 From: himself65 Date: Fri, 1 May 2020 13:19:45 +0800 Subject: [PATCH] doc: fix a typo in crypto.generateKeyPairSync() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/33187 Reviewed-By: James M Snell Reviewed-By: Colin Ihrig Reviewed-By: Juan José Arboleda --- 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 83f584ad882db2..a24121f7aa9fc1 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -2218,8 +2218,8 @@ behaves as if [`keyObject.export()`][] had been called on its result. Otherwise, the respective part of the key is returned as a [`KeyObject`][]. When encoding public keys, it is recommended to use `'spki'`. When encoding -private keys, it is recommended to use `'pks8'` with a strong passphrase, and to -keep the passphrase confidential. +private keys, it is recommended to use `'pkcs8'` with a strong passphrase, +and to keep the passphrase confidential. ```js const { generateKeyPairSync } = require('crypto');