mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
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>
This commit is contained in:
1 parent
bb2d2f6e0e
commit
7893bde07e
1 file changed
+2
-2
+2
-2
@@ -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');
|
||||
|
||||
Reference in new issue
Block a user