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 <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
  • Loading branch information
himself65 authored and targos committed May 13, 2020
1 parent 85ef383 commit 51c3c8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/crypto.md
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 51c3c8d

Please sign in to comment.