{"id":21233659,"url":"https://github.com/bdr-pro/rsa_auth","last_synced_at":"2026-03-17T18:41:35.620Z","repository":{"id":238731956,"uuid":"797390858","full_name":"BDR-Pro/RSA_Auth","owner":"BDR-Pro","description":"use rsa to login","archived":false,"fork":false,"pushed_at":"2024-05-07T18:37:58.000Z","size":588,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-01T20:16:26.807Z","etag":null,"topics":["asym","rsa"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/BDR-Pro.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":"2024-05-07T18:29:57.000Z","updated_at":"2025-05-21T07:46:06.000Z","dependencies_parsed_at":"2024-05-07T19:49:59.884Z","dependency_job_id":null,"html_url":"https://github.com/BDR-Pro/RSA_Auth","commit_stats":null,"previous_names":["bdr-pro/rsa_auth"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BDR-Pro/RSA_Auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BDR-Pro%2FRSA_Auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BDR-Pro%2FRSA_Auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BDR-Pro%2FRSA_Auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BDR-Pro%2FRSA_Auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BDR-Pro","download_url":"https://codeload.github.com/BDR-Pro/RSA_Auth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BDR-Pro%2FRSA_Auth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30628478,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T17:32:55.572Z","status":"ssl_error","status_checked_at":"2026-03-17T17:32:38.732Z","response_time":56,"last_error":"SSL_read: 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":["asym","rsa"],"created_at":"2024-11-20T23:59:50.845Z","updated_at":"2026-03-17T18:41:35.600Z","avatar_url":"https://github.com/BDR-Pro.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Project: Login with PEM Private Key (Local Proxy Server Example)\n\n## Overview\n\nThis Flask-based project demonstrates a secure login mechanism using a PEM private key for authentication. It serves as a client application that interacts with a local proxy server (assumed to be running on port 8000) to retrieve data. The authentication process involves generating and verifying challenges along with a digital signature.\n\n## Features\n\n- **Secure Authentication**: Users authenticate themselves using a digital signature generated from a PEM private key.\n- **Session Management**: Sessions are managed securely using Flask's session management with a customizable lifetime.\n- **Challenge-Based Authentication**: Users are challenged with a randomly generated string during authentication to prevent replay attacks.\n- **Proxy Server Interaction**: The application interacts with a local proxy server running on port 8000 to fetch data.\n\n## Usage\n\n1. **Setup PEM Private Key**:\n   - Ensure you have a PEM private key for authentication. This key should be securely stored and managed.\n\n2. **Install Dependencies**:\n   1- Install the required dependencies specified in `requirements.txt` using pip:\n\n     ```bash\n     pip install -r requirements.txt\n     ```\n\n3. **Configure Public Key**:\n   - Set up the public key of the proxy server. Update `public_key.pem` with the appropriate public key.\n\n4. **Run the Application**:\n   1- Execute the Python script `app.py`:\n\n     ```bash\n     python app.py\n     ```\n\n5. **Access the Application**:\n   - Open a web browser and navigate to `http://localhost:\u003cport\u003e` to access the application.\n\n6. **Authentication**:\n   - Click on the login button to initiate the authentication process.\n   - Upon successful authentication, you'll gain access to the status page displaying data fetched from the proxy server.\n\n## Files\n\n- **app.py**: Main Python script containing the Flask application.\n- **public_key.pem**: Public key of the proxy server for signature verification.\n- **templates/**: Directory containing HTML templates for rendering pages.\n- **challenge.txt**: File storing challenges for authentication.\n\n## Notes\n\n- Ensure the local proxy server is running on port 8000 for successful data retrieval.\n- Customize session lifetime and other configurations in `app.py` as needed.\n- This project serves as a demonstration and should be extended and modified for production use, including enhanced security measures and error handling.\n\n## Example\n\n### Author\n\n- [Bader Alotaibi](https://www.github.com/bdr-pro)\n\n### License\n\n- This project is licensed under the MIT. See the LICENSE file for details.\n\n### Acknowledgments\n\n- Mention any acknowledgments or credits for libraries, resources, or inspiration used in the project\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbdr-pro%2Frsa_auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbdr-pro%2Frsa_auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbdr-pro%2Frsa_auth/lists"}