Skip to content

Commit

Permalink
move text above code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ojasvi Monga authored and Ojasvi Monga committed Jul 12, 2019
1 parent a04b890 commit d2a0636
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions doc/api/crypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -703,14 +703,13 @@ module):
added: v0.7.5
-->

Usage:
The `DiffieHellmanGroup` class takes a well-known modp group as its argument but
otherwise works the same as `DiffieHellman`.

```js
const name = 'modp1';
const dh = crypto.createDiffieHellmanGroup(name);
```
It takes a well-known modp group as its argument but
otherwise works the same as `DiffieHellman`.

`name` is taken from [RFC 2412][] (modp1 and 2) and [RFC 3526][]:
```bash
Expand Down

0 comments on commit d2a0636

Please sign in to comment.