{"id":17039796,"url":"https://github.com/dayanfreitas/rsa","last_synced_at":"2025-07-05T00:37:55.953Z","repository":{"id":39224833,"uuid":"505239017","full_name":"Dayanfreitas/RSA","owner":"Dayanfreitas","description":"Simple implementation of the RSA algorithm","archived":false,"fork":false,"pushed_at":"2022-07-13T00:35:55.000Z","size":53,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T00:32:37.281Z","etag":null,"topics":["coverage","decoding","docker","docker-compose","rsa-algorithm","ruby","testunit"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Dayanfreitas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-19T23:15:27.000Z","updated_at":"2024-11-07T15:40:17.000Z","dependencies_parsed_at":"2022-07-11T21:01:53.779Z","dependency_job_id":null,"html_url":"https://github.com/Dayanfreitas/RSA","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dayanfreitas%2FRSA","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dayanfreitas%2FRSA/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dayanfreitas%2FRSA/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dayanfreitas%2FRSA/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dayanfreitas","download_url":"https://codeload.github.com/Dayanfreitas/RSA/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245040235,"owners_count":20551297,"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":["coverage","decoding","docker","docker-compose","rsa-algorithm","ruby","testunit"],"created_at":"2024-10-14T09:07:30.014Z","updated_at":"2025-03-23T00:33:40.150Z","avatar_url":"https://github.com/Dayanfreitas.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"![example workflow](https://github.com/Dayanfreitas/RSA/actions/workflows/main.yml/badge.svg)\n\n\u003chr/\u003e\n\n# RSA\nSimple implementation gem of the RSA algorithm. Just academic reasons.\n\n## Key generation private and public\n```bash\n# key generation\nRSA.generated \n```\n## Encode\n```bash\n# encode\nRSA.encode('oi') \n```\n## Decode\n```bash\n# decode\nRSA.decode(RSA.encode('oi')) \n```\n\n## User keys open\n```ruby\n    ## For encoding\n    \n    RSA::OPEN::Public.n= \u003cnumber\u003e\n    RSA::OPEN::Public.e= \u003cnumber\u003e\n    RSA.encode('oi')\n\n    ## For decoding    \n    RSA::OPEN::Private.n = \u003cnumber\u003e\n    RSA::OPEN::Private.d = \u003cnumber\u003e\n    RSA.decode(RSA.encode('oi'))\n```\n\n\n## Examples of implementation\nExample folder. Intended for example using this gem\n\n* Simple  \n    Simplest way would be through ```RSA.generated```. That way you will have the keys created in the ```keys``` folder and you can use\n\n* Open keys \n\n    You can use open keys, for those not generated through ```RSA.generated``` that way you can set externally.\n\n# Development\n\n## init\n    make up\n\n## run teste\n    ruby test/all_test.rb\n\n***\n\n# To learn more about:  \n* [🔒 RSA implementation algorithm [PT-BR🇧🇷]](https://github.com/Dayanfreitas/RSA/blob/master/doc/rsa_algorithm_pt_br.md) \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdayanfreitas%2Frsa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdayanfreitas%2Frsa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdayanfreitas%2Frsa/lists"}