diff options
author | himself65 <himself65@outlook.com> | 2020-05-01 08:19:45 +0300 |
---|---|---|
committer | himself65 <himself65@outlook.com> | 2020-05-03 13:15:50 +0300 |
commit | 53eb264cb16f5c1815d4ccfda585b462f9fac92a (patch) | |
tree | 7fc271f583b8cd65ec523f5074a07a7d2ea303a5 /doc/api/crypto.md | |
parent | b0aba53195530a95688c9d5f274f854fd423da5c (diff) |
doc: fix a typo in crypto.generateKeyPairSync()
PR-URL: https://github.com/nodejs/node/pull/33187
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Diffstat (limited to 'doc/api/crypto.md')
-rw-r--r-- | doc/api/crypto.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/crypto.md b/doc/api/crypto.md index d782722caa2..7b97edac68f 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'); |