Package Exports
- modp-groups
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (modp-groups) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
modp-groups
MODP groups used by node core for Diffie-Hellman key exchange.
Generated following the specs
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.