{"id":34046252,"url":"https://github.com/jpvitan/marsa","last_synced_at":"2026-04-07T11:31:57.175Z","repository":{"id":45082244,"uuid":"324731698","full_name":"jpvitan/marsa","owner":"jpvitan","description":"A Python library that lets you experiment with the mathematics of the Rivest–Shamir–Adleman (RSA) cryptosystem.","archived":false,"fork":false,"pushed_at":"2024-08-16T18:33:37.000Z","size":598,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-27T03:25:18.378Z","etag":null,"topics":["cryptography","number-theory","pypi","python","rsa"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/marsa/","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/jpvitan.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,"zenodo":null}},"created_at":"2020-12-27T09:55:35.000Z","updated_at":"2024-08-16T18:33:40.000Z","dependencies_parsed_at":"2025-08-20T07:13:35.675Z","dependency_job_id":null,"html_url":"https://github.com/jpvitan/marsa","commit_stats":null,"previous_names":["jpvitan/marsa","jpvitan/rsa-jpv"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/jpvitan/marsa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpvitan%2Fmarsa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpvitan%2Fmarsa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpvitan%2Fmarsa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpvitan%2Fmarsa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpvitan","download_url":"https://codeload.github.com/jpvitan/marsa/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpvitan%2Fmarsa/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31511585,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","number-theory","pypi","python","rsa"],"created_at":"2025-12-13T23:42:16.493Z","updated_at":"2026-04-07T11:31:57.169Z","avatar_url":"https://github.com/jpvitan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"**MARSA** is a Python library that lets you experiment with the mathematics of the Rivest–Shamir–Adleman (RSA) cryptosystem.\n\n\n![Badge](https://img.shields.io/github/license/jpvitan/marsa)\n![Badge](https://img.shields.io/badge/code%20style-black-000000.svg)\n\n\n## 📋 Quick Guide\n\n\n### Installation\n\n\nYou can install **MARSA** using pip. Simply run the following command in your terminal or command prompt:\n\n\n```\npip install marsa\n```\n\n\n### Key Generation\n\n\nTo generate a key pair, import the `rsa` module from the `marsa` package and create an instance of the `KeyPair` class:\n\n\n```python\nfrom marsa import rsa\n\nkey_pair = rsa.KeyPair()\n```\n\n\n### Encryption\n\n\nTo encrypt, create an instance of the `Encryptor` class with the public key from your `KeyPair` object and use the `encrypt()` method:\n\n\n```python\nencryptor = rsa.Encryptor(key_pair.public_key)\nsecret_message = encryptor.encrypt(message)\n```\n\n\nIf you don't have access to the `KeyPair` object, you can manually create a key by using the `Key` class:\n\n\n```python\npublic_key = rsa.Key(product, exponent)\n```\n\n\n### Decryption\n\n\nDecryption works similar to encryption. If you need to decrypt, create an instance of the `Decryptor` class with the private key from your `KeyPair` object and use the `decrypt()` method:\n\n\n```python\ndecryptor = rsa.Decryptor(key_pair.private_key)\nmessage = decryptor.decrypt(secret_message)\n```\n\n\n## 🛠️ Software\n\n\n### Developer\n\n\nBuilt by [Justine Paul Vitan](https://jpvitan.com) as a solo project to demonstrate his knowledge in cryptography and number theory. The source code of this project is open and available to the public via GitHub for transparency and open-source collaboration.\n\n\n### License\n\n\nThis project is under the [MIT license](https://github.com/jpvitan/marsa/blob/master/LICENSE). Please read the terms and conditions stated within the license before attempting any modification or distribution of the software.\n\n\n## ⚠️️ Warning\n\n\n### Production Use\n\n\n**MARSA** is intended solely for educational purposes to illustrate the fundamental concepts of RSA encryption and decryption. It is not suitable for use in production environments where security is paramount. Please be aware that this implementation lacks essential security features, such as proper padding schemes, and should not be relied upon for real-world applications. For secure RSA implementations suitable for production use, consider utilizing established cryptographic libraries and frameworks.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpvitan%2Fmarsa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpvitan%2Fmarsa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpvitan%2Fmarsa/lists"}