npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

modp-groups

0.0.0

@juliangruber

npmHomeRepoSnykSocket
Downloads:66
$ npm install modp-groups
DailyWeeklyMonthlyYearly

modp-groups

MODP groups used by node core for Diffie-Hellman key exchange.

Generated following the specs

  • RFC 2412
  • RFC 3526

Usage

var getGroup = require('modp-groups');

var group = getGroup('modp5');
// => { prime: <BigNumber>, generator: 2 }

API

getGroup(id)

Get the group with the given id, which has the two keys prime — which is a bignumber — and generator.

getGroup.ids

All the available group names.

Installation

With npm do:

npm install modp-groups

License

The MIT license.