Skip to content

Commit

Permalink
doc: fix a typo in crypto.generateKeyPairSync()
Browse files Browse the repository at this point in the history
PR-URL: #33187
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Juan José Arboleda <[email protected]>
  • Loading branch information
himself65 authored and targos committed May 7, 2020
1 parent 39a9665 commit 9051f36
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 @@ -2218,8 +2218,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 9051f36

Please sign in to comment.