Skip to content

Commit 7893bde

Browse files
himself65targos
authored andcommitted
doc: fix a typo in crypto.generateKeyPairSync()
PR-URL: #33187 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
1 parent bb2d2f6 commit 7893bde

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
@@ -2222,8 +2222,8 @@ behaves as if [`keyObject.export()`][] had been called on its result. Otherwise,
22222222
the respective part of the key is returned as a [`KeyObject`][].
22232223

22242224
When encoding public keys, it is recommended to use `'spki'`. When encoding
2225-
private keys, it is recommended to use `'pks8'` with a strong passphrase, and to
2226-
keep the passphrase confidential.
2225+
private keys, it is recommended to use `'pkcs8'` with a strong passphrase,
2226+
and to keep the passphrase confidential.
22272227

22282228
```js
22292229
const { generateKeyPairSync } = require('crypto');

0 commit comments

Comments
 (0)