{"id":27332279,"url":"https://github.com/hubert-kniola/rsacipher","last_synced_at":"2026-05-05T22:43:19.456Z","repository":{"id":192676312,"uuid":"357648355","full_name":"hubert-kniola/RSACipher","owner":"hubert-kniola","description":"Simple RSA cipher with FastAPI \u0026 Unittests","archived":false,"fork":false,"pushed_at":"2021-04-16T12:18:18.000Z","size":231,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-09-05T07:15:18.517Z","etag":null,"topics":["docker","fastapi","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/hubert-kniola.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,"governance":null}},"created_at":"2021-04-13T18:13:51.000Z","updated_at":"2023-09-05T07:15:31.574Z","dependencies_parsed_at":"2023-09-05T08:15:37.348Z","dependency_job_id":null,"html_url":"https://github.com/hubert-kniola/RSACipher","commit_stats":null,"previous_names":["hubert-kniola/rsacipher"],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hubert-kniola%2FRSACipher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hubert-kniola%2FRSACipher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hubert-kniola%2FRSACipher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hubert-kniola%2FRSACipher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hubert-kniola","download_url":"https://codeload.github.com/hubert-kniola/RSACipher/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248576596,"owners_count":21127438,"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":["docker","fastapi","python"],"created_at":"2025-04-12T13:53:52.064Z","updated_at":"2026-05-05T22:43:19.430Z","avatar_url":"https://github.com/hubert-kniola.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RSACipher\nSimple RSA cipher with FastAPI \u0026 Unittests\n\nTitle: Recruitment task\\\nAuthor: **Hubert Knioła**\n\nCompleted tasks:\n- RSA Cipher - *DONE*\n- Encode and decode methods - *DONE*\n- Simple Unit Tests - *DONE*\n- FastAPI Server with previous methods - *DONE*\n- BasicAuth FastAPI - *DONE*\n- Code documentations - *DONE*\n- Dockerization - *DONE*\n\n**Starting the server as a container**\n```bash\ndocker build -t cipher_api .\ndocker run -d --name apicontainer -p 80:80 cipher_api\n```\n\n**Starting the server locally**\n```bash\nuvicorn app.main:app --reload\n```\n\n**Running tests**\n```bash\npytest app/tests_cipher.py\n```\n\n# TESTS\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"Images/tests.PNG\" title=\"Tests\"\u003e\n\u003c/p\u003e\n\n# BASIC AUTHENTICATION\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"Images/login.PNG\" title=\"Login\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"Images/logged.PNG\" title=\"Logged\"\u003e\n\u003c/p\u003e\n\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"Images/correct.PNG\" title=\"Request after login\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"Images/invaliduser.PNG\" title=\"Invalid user\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"Images/invalid.PNG\" title=\"Request without login\"\u003e\n\u003c/p\u003e\n\n# API ENDPOINTS \u0026 EFFECTS\n\nREQUEST FORM /allinone\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"Images/allinone-req.PNG\" title=\"All in one\"\u003e\n\u003c/p\u003e\n\nPOST /allinone\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"Images/allinone.PNG\" title=\"All in one\"\u003e\n\u003c/p\u003e\n\nGET /elements\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"Images/elements.PNG\" title=\"Elements\"\u003e\n\u003c/p\u003e\n\nPOST /element/{id}\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"Images/element.PNG\" title=\"Element\"\u003e\n\u003c/p\u003e\n\nREQUEST FORM /encode\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"Images/encode-request.PNG\" title=\"Encode\"\u003e\n\u003c/p\u003e\n\nPOST /encode\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"Images/encode.PNG\" title=\"Encode\"\u003e\n\u003c/p\u003e\n\nREQUEST FORM /decode\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"Images/decode-request.PNG\" title=\"Encode\"\u003e\n\u003c/p\u003e\n\nPOST /decode\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"Images/decode.PNG\" title=\"Decode\"\u003e\n\u003c/p\u003e\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhubert-kniola%2Frsacipher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhubert-kniola%2Frsacipher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhubert-kniola%2Frsacipher/lists"}