Skip to content

Commit 51c3c8d

Browse files
himself65targos
authored andcommitted
doc: fix a typo in crypto.generateKeyPairSync()
PR-URL: #33187 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]>
1 parent 85ef383 commit 51c3c8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/crypto.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2218,8 +2218,8 @@ behaves as if [`keyObject.export()`][] had been called on its result. Otherwise,
22182218
the respective part of the key is returned as a [`KeyObject`][].
22192219

22202220
When encoding public keys, it is recommended to use `'spki'`. When encoding
2221-
private keys, it is recommended to use `'pks8'` with a strong passphrase, and to
2222-
keep the passphrase confidential.
2221+
private keys, it is recommended to use `'pkcs8'` with a strong passphrase,
2222+
and to keep the passphrase confidential.
22232223

22242224
```js
22252225
const { generateKeyPairSync } = require('crypto');

0 commit comments

Comments
 (0)