Skip to content

Commit

Permalink
doc: fix a typo in crypto.generateKeyPairSync()
Browse files Browse the repository at this point in the history
  • Loading branch information
himself65 committed May 1, 2020
1 parent e951825 commit e5c0afc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/crypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit e5c0afc

Please sign in to comment.