{"id":16032751,"url":"https://github.com/silverwind/dhparam","last_synced_at":"2025-06-19T02:04:56.595Z","repository":{"id":66012959,"uuid":"42371175","full_name":"silverwind/dhparam","owner":"silverwind","description":"Generate PEM-encoded Diffie-Hellman parameters directly from within node","archived":false,"fork":false,"pushed_at":"2018-05-31T17:53:48.000Z","size":47,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-02T09:39:42.802Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/silverwind.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2015-09-12T20:02:11.000Z","updated_at":"2018-12-19T19:36:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"b0468c38-aa7d-4374-8b04-9a58ca601288","html_url":"https://github.com/silverwind/dhparam","commit_stats":{"total_commits":46,"total_committers":1,"mean_commits":46.0,"dds":0.0,"last_synced_commit":"ef726a1c6753a3034b4d4160df3aab7036c731c1"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverwind%2Fdhparam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverwind%2Fdhparam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverwind%2Fdhparam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverwind%2Fdhparam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/silverwind","download_url":"https://codeload.github.com/silverwind/dhparam/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverwind%2Fdhparam/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":258793665,"owners_count":22758991,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-08T21:40:29.732Z","updated_at":"2025-06-19T02:04:51.578Z","avatar_url":"https://github.com/silverwind.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dhparam [![NPM version](https://img.shields.io/npm/v/dhparam.svg?style=flat)](https://www.npmjs.org/package/dhparam) [![Dependency Status](http://img.shields.io/david/silverwind/dhparam.svg?style=flat)](https://david-dm.org/silverwind/dhparam)\n\u003e Generate PEM-encoded Diffie-Hellman parameters directly from within node\n\n## Install\n```bash\n$ npm i --save dhparam\n```\n### Use\n```js\nvar dhparam = require(\"dhparam\");\nconsole.log(dhparam());\n// -----BEGIN DH PARAMETERS-----\n// MIIBBwKCAQDRTTrIcnoH8L/YbVA21qpr66V+JXKGL14XiXqmtNkXdQc/QSKAfG3R\n// jZm+lBX36muujGbiE5n6d524nFY5wRB0O69Ec29ChPQkWXg/Aa9Tw0iguBODMWH7\n// autfO3/O7ipyQSaXeFYM3zhpWduyjfl3NP7gApRR6XFhpZkbVoiB6N1QQs2RrIoS\n// HsivM0SzROpM6iteyGsFO9ANZdGTcMKuVxD8NrDm99zhPOKLAqlCDPA50SxRn8mQ\n// nunzbXFsR6+AX2Er/DaTWLY6iLB1GxAPG9rymBI1hVrgHxLfcv7qkdzqv3iAKk9k\n// GjkvdaGa2AJzzetUm4zKueLo+MwOOGkbAgEC\n// -----END DH PARAMETERS-----\n```\n## API\n### dhparam(bits)\n- `bits` *number*: Key size for the prime. default: 2048\n\n*Note that generating 2048 bits and above will take considerable time*\n\n© 2015 [silverwind](https://github.com/silverwind), distributed under BSD licence\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilverwind%2Fdhparam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsilverwind%2Fdhparam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilverwind%2Fdhparam/lists"}