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 <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
1 parent 85ef383 commit 51c3c8d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)