MODP groups commonly used for Diffie-Hellman
JavaScript
Latest commit d5525a0 Jul 27, 2013 @juliangruber doc
Permalink
Failed to load latest commit information.
test initial commit Jul 27, 2013
.gitignore initial commit Jul 27, 2013
.travis.yml use travis and testling Jul 27, 2013
LICENSE initial commit Jul 27, 2013
README.md doc Jul 27, 2013
generate.js initial commit Jul 27, 2013
index.js initial commit Jul 27, 2013
package.json use travis and testling Jul 27, 2013
primes.json initial commit Jul 27, 2013

README.md

modp-groups

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

Generated following the specs

build status

testling badge

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.