dhparam
v2.0.0
Published
Generate PEM-encoded Diffie-Hellman parameters directly from within node
Downloads
24
Maintainers
Readme
dhparam
Generate PEM-encoded Diffie-Hellman parameters directly from within node
Install
$ npm i --save dhparam
Use
var dhparam = require("dhparam");
console.log(dhparam());
// -----BEGIN DH PARAMETERS-----
// MIIBBwKCAQDRTTrIcnoH8L/YbVA21qpr66V+JXKGL14XiXqmtNkXdQc/QSKAfG3R
// jZm+lBX36muujGbiE5n6d524nFY5wRB0O69Ec29ChPQkWXg/Aa9Tw0iguBODMWH7
// autfO3/O7ipyQSaXeFYM3zhpWduyjfl3NP7gApRR6XFhpZkbVoiB6N1QQs2RrIoS
// HsivM0SzROpM6iteyGsFO9ANZdGTcMKuVxD8NrDm99zhPOKLAqlCDPA50SxRn8mQ
// nunzbXFsR6+AX2Er/DaTWLY6iLB1GxAPG9rymBI1hVrgHxLfcv7qkdzqv3iAKk9k
// GjkvdaGa2AJzzetUm4zKueLo+MwOOGkbAgEC
// -----END DH PARAMETERS-----
API
dhparam(bits)
bits
number: Key size for the prime. default: 2048
Note that generating 2048 bits and above will take considerable time
© 2015 silverwind, distributed under BSD licence