{"id":20706433,"url":"https://github.com/pythoncoderunicorn/simplersa","last_synced_at":"2025-08-24T13:12:45.199Z","repository":{"id":187558498,"uuid":"677141987","full_name":"PythonCoderUnicorn/simpleRSA","owner":"PythonCoderUnicorn","description":"a simple Python program to learn how RSA cryptography works","archived":false,"fork":false,"pushed_at":"2023-08-10T21:17:12.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-02T12:35:22.132Z","etag":null,"topics":["cryptography","python3","rsa"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PythonCoderUnicorn.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":"2023-08-10T21:03:16.000Z","updated_at":"2023-08-10T21:10:28.000Z","dependencies_parsed_at":"2023-08-11T04:25:52.409Z","dependency_job_id":null,"html_url":"https://github.com/PythonCoderUnicorn/simpleRSA","commit_stats":null,"previous_names":["pythoncoderunicorn/simplersa"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PythonCoderUnicorn/simpleRSA","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PythonCoderUnicorn%2FsimpleRSA","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PythonCoderUnicorn%2FsimpleRSA/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PythonCoderUnicorn%2FsimpleRSA/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PythonCoderUnicorn%2FsimpleRSA/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PythonCoderUnicorn","download_url":"https://codeload.github.com/PythonCoderUnicorn/simpleRSA/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PythonCoderUnicorn%2FsimpleRSA/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271872103,"owners_count":24837049,"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","status":"online","status_checked_at":"2025-08-24T02:00:11.135Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","python3","rsa"],"created_at":"2024-11-17T01:23:11.225Z","updated_at":"2025-08-24T13:12:45.115Z","avatar_url":"https://github.com/PythonCoderUnicorn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simpleRSA\na simple Python program to learn how RSA cryptography works\n\n\nWhat the program looks like\n\n```\n  ------------------------------------------\n      \n  ooooooooo.    .oooooo..o       .o.       \n  `888   `Y88. d8P'    `Y8      .888.      \n  888   .d88' Y88bo.          .8\"888.     \n  888ooo88P'   `\"Y8888o.     .8' `888.    \n  888`88b.         `\"Y88b   .88ooo8888.   \n  888  `88b.  oo     .d8P  .8'     `888.  \n  o888o  o888o 8\"\"88888P'  o88o     o8888o\n      \n  Rivest-Shamir-Adleman public-key cryptosystem\n      \n      * for education only ! *\n  ------------------------------------------\n      \n\nEnter p: 11\nEnter q: 13\nnumbers are prime ✅\nn = 143 | bits: 3 | length: 4\nGCD = 143\nPhi = 120\nnumber of e keys: 27\n🔑 e = 7 (1st key in array)\nnumber of d keys: 8\n🔑 d = 223 (1st key in array)\n\n-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#\n Public Key 🔑 : (7, 143)\n Private Key 🔒 : (223, 143)\n-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#\n\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n```\n\nThis code followed a blog explanation and is meant to be used for educational purposes. This is why the 1st element in the key arrays are selected for examples. \n\n## \n\n- to encrypt `k` (k is an integer) : `kd = k^e % n`\n- to decrypt `k` (kd is key to decrypt) `k = kd^d % n`\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythoncoderunicorn%2Fsimplersa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpythoncoderunicorn%2Fsimplersa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythoncoderunicorn%2Fsimplersa/lists"}