Neurosis Prevention Mechanism

    dhparam

    2.0.0 • Public • Published

    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

    Install

    npm i dhparam

    DownloadsWeekly Downloads

    47

    Version

    2.0.0

    License

    BSD-2-Clause

    Unpacked Size

    3.48 kB

    Total Files

    4

    Last publish

    Collaborators

    • silverwind