{"id":18553003,"url":"https://github.com/cryptosense/diffie-hellman-groups","last_synced_at":"2026-03-16T04:31:58.190Z","repository":{"id":145421725,"uuid":"72845581","full_name":"cryptosense/diffie-hellman-groups","owner":"cryptosense","description":"List of common Diffie-Hellman groups","archived":false,"fork":false,"pushed_at":"2017-07-11T08:12:10.000Z","size":73,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-10T15:56:52.764Z","etag":null,"topics":["cryptography","diffie-hellman-groups"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/cryptosense.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-04T12:24:43.000Z","updated_at":"2024-10-12T17:13:48.000Z","dependencies_parsed_at":"2024-03-16T20:10:37.022Z","dependency_job_id":null,"html_url":"https://github.com/cryptosense/diffie-hellman-groups","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cryptosense/diffie-hellman-groups","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptosense%2Fdiffie-hellman-groups","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptosense%2Fdiffie-hellman-groups/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptosense%2Fdiffie-hellman-groups/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptosense%2Fdiffie-hellman-groups/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cryptosense","download_url":"https://codeload.github.com/cryptosense/diffie-hellman-groups/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptosense%2Fdiffie-hellman-groups/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261338979,"owners_count":23143896,"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":["cryptography","diffie-hellman-groups"],"created_at":"2024-11-06T21:15:48.246Z","updated_at":"2025-10-05T18:12:29.782Z","avatar_url":"https://github.com/cryptosense.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Diffie-Hellman groups\n\n## JSON list of common groups\n\nYou can find commonly-shared Diffie-Hellman groups in `gen/common.json` in the following\nform:\n\n```json\n{\n    \"name\": \"Oakley 1 from RFC 2409, 768-bit\",\n    \"g\": 2,\n    \"p\": 1552518092300708935130918131258481755631334049434514313202351194902966239949102107258669453876591642442910007680288864229150803718918046342632727613031282983744380820890196288509170691316593175367469551763119843371637221007210577919,\n    \"length\": 768,\n    \"prime\": true,\n    \"safe_prime\": true\n}\n```\n\nwhere `p` is the integer definining the group, `g` is a generator of this group and\n`length` is the bit-length of `p`.  `prime` is `true` if `p` passed the Baillie-PSW test.\n`safe_prime` is `true` if `(p - 1) / 2` passed the Baillie-PSW test.\n\n## Why?\n\nThis work is motivated by key exchange weaknesses due to commonly-shared Diffie-Hellman\ngroups being used, such as pointed out on [weakdh.org][weakdh].\n\nCryptosense tests for these groups on TLS and SSH servers at\n[discovery.cryptosense.com][discovery] and in applications in its [Analyzer][analyzer].\n\n## Contributing\n\nIf you found a group used by some piece of software which is not in the list, please open an\nissue or a pull request.\n\n[weakdh]: https://weakdh.org/\n[discovery]: https://discovery.cryptosense.com/\n[analyzer]: https://cryptosense.com/analyzer/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptosense%2Fdiffie-hellman-groups","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcryptosense%2Fdiffie-hellman-groups","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptosense%2Fdiffie-hellman-groups/lists"}