Socket
Book a DemoInstallSign in
Socket

dhparam

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dhparam

Generate PEM-encoded Diffie-Hellman parameters directly from within node

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

dhparam NPM version Dependency Status

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

Keywords

dhparam

FAQs

Package last updated on 31 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts