{"id":17717346,"url":"https://github.com/bwesterb/germain","last_synced_at":"2025-03-31T12:21:21.610Z","repository":{"id":137660459,"uuid":"8836491","full_name":"bwesterb/germain","owner":"bwesterb","description":"Counts safe primes","archived":false,"fork":false,"pushed_at":"2013-04-08T07:52:37.000Z","size":160,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-11T03:27:27.313Z","etag":null,"topics":["cryptography","estimate","germain","safe-prime"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bwesterb.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}},"created_at":"2013-03-17T15:34:53.000Z","updated_at":"2023-03-11T03:40:44.715Z","dependencies_parsed_at":"2023-03-13T10:56:16.230Z","dependency_job_id":null,"html_url":"https://github.com/bwesterb/germain","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwesterb%2Fgermain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwesterb%2Fgermain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwesterb%2Fgermain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwesterb%2Fgermain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bwesterb","download_url":"https://codeload.github.com/bwesterb/germain/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246465244,"owners_count":20781920,"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","estimate","germain","safe-prime"],"created_at":"2024-10-25T14:19:55.086Z","updated_at":"2025-03-31T12:21:21.585Z","avatar_url":"https://github.com/bwesterb.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"germain\n=======\n\nThese are a few small Python scripts to estimate the relative density\nof the safe primes in the normal primes.  `p` is called a safe prime\nif `(p - 1)/2` and `p` itself are prime.\nConversely, if both `p` and `2p+1` are prime, then `p` is called\na Sophie Germain prime.\nFor quite a few of cryptographic algorithms it is advised to\nuse safe primes.\nFinding a b-bit safe prime is simple: simply generate a b-bit random prime and\nthen check whether it is safe.  It is simple, but it takes some time.\nTo estimate how long, we are interested in the relative density:\nthe fraction of b-bit primes that are safe.\n\nTo help out, clone this repository and run:\n\n    apt-get install python-crypto python-gmpy\n    python germain.py my-name\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbwesterb%2Fgermain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbwesterb%2Fgermain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbwesterb%2Fgermain/lists"}