From e5c0afc89f9a7a29b1ed02e38e0f27d71b6731fd 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() --- 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 d782722caa2525..7b97edac68fecd 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -2222,8 +2222,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');