{"id":15687796,"url":"https://github.com/orisano/owiener","last_synced_at":"2025-04-10T00:19:11.770Z","repository":{"id":42702409,"uuid":"82988198","full_name":"orisano/owiener","owner":"orisano","description":"A Python3 implementation of the Wiener attack on RSA","archived":false,"fork":false,"pushed_at":"2024-06-01T13:56:16.000Z","size":49,"stargazers_count":118,"open_issues_count":0,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T16:07:05.104Z","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/orisano.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":"2017-02-24T01:24:59.000Z","updated_at":"2025-03-26T11:32:45.000Z","dependencies_parsed_at":"2024-05-31T14:47:12.920Z","dependency_job_id":"fa334adc-c32b-436e-bd10-5a7dc6445082","html_url":"https://github.com/orisano/owiener","commit_stats":{"total_commits":60,"total_committers":2,"mean_commits":30.0,"dds":"0.19999999999999996","last_synced_commit":"9c8a2587fcd3bfa1d8f55b4bc07c91e01e29caff"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fowiener","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fowiener/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fowiener/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fowiener/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orisano","download_url":"https://codeload.github.com/orisano/owiener/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248131451,"owners_count":21052850,"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","python3","rsa"],"created_at":"2024-10-03T17:51:09.908Z","updated_at":"2025-04-10T00:19:11.748Z","avatar_url":"https://github.com/orisano.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# oWiener\n[![Test](https://github.com/orisano/owiener/actions/workflows/test.yml/badge.svg)](https://github.com/orisano/owiener/actions/workflows/test.yml)\n[![PyPI version](https://badge.fury.io/py/owiener.svg)](https://badge.fury.io/py/owiener)\n[![Python Versions](https://img.shields.io/pypi/pyversions/owiener.svg)](https://pypi.org/project/owiener/)\n\nA Python3 implementation of the Wiener attack on RSA.\n\n## Installation\n```bash\npython3 -m pip install owiener\n```\nor\n```bash\ncurl -O https://raw.githubusercontent.com/orisano/owiener/master/owiener.py\n```\n\n## Example\n```python\nimport owiener\n\ne = 30749686305802061816334591167284030734478031427751495527922388099381921172620569310945418007467306454160014597828390709770861577479329793948103408489494025272834473555854835044153374978554414416305012267643957838998648651100705446875979573675767605387333733876537528353237076626094553367977134079292593746416875606876735717905892280664538346000950343671655257046364067221469807138232820446015769882472160551840052921930357988334306659120253114790638496480092361951536576427295789429197483597859657977832368912534761100269065509351345050758943674651053419982561094432258103614830448382949765459939698951824447818497599\nn = 109966163992903243770643456296093759130737510333736483352345488643432614201030629970207047930115652268531222079508230987041869779760776072105738457123387124961036111210544028669181361694095594938869077306417325203381820822917059651429857093388618818437282624857927551285811542685269229705594166370426152128895901914709902037365652575730201897361139518816164746228733410283595236405985958414491372301878718635708605256444921222945267625853091126691358833453283744166617463257821375566155675868452032401961727814314481343467702299949407935602389342183536222842556906657001984320973035314726867840698884052182976760066141\nd = owiener.attack(e, n)\n\nif d is None:\n    print(\"Failed\")\nelse:\n    print(\"Hacked d={}\".format(d))\n    \n# Hacked d=4221909016509078129201801236879446760697885220928506696150646938237440992746683409881141451831939190609743447676525325543963362353923989076199470515758399\n```\n\n## References\nCryptanalysis of Short RSA Secret Exponents:  \nhttps://www.cits.ruhr-uni-bochum.de/imperia/md/content/may/krypto2ss08/shortsecretexponents.pdf  \npablocelayes/rsa-wiener-attack:  \nhttps://github.com/pablocelayes/rsa-wiener-attack  \nwihoho/Wiener-s-Attack:  \nhttps://github.com/wihoho/Wiener-s-Attack\n\n## Author\nNao Yonashiro (@orisano)\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forisano%2Fowiener","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forisano%2Fowiener","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forisano%2Fowiener/lists"}