{"id":24896791,"url":"https://github.com/harmotus/secure-login-one","last_synced_at":"2026-02-10T20:32:08.399Z","repository":{"id":271518914,"uuid":"913713883","full_name":"harmotus/secure-login-one","owner":"harmotus","description":"A secure login where the user's private key is never hosted on servers or the user's online devices ( this project can also be used as a form of two-factor authentication ( 2FA ) where the user's private key is never hosted on servers )","archived":false,"fork":false,"pushed_at":"2025-02-05T20:08:46.000Z","size":87,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-26T21:04:28.718Z","etag":null,"topics":["2fa","authentication","html5","javascript","login","mysql","mysql-database","password-protection","php","php-authentication","php-login","php-mysqli","php-pdo","qr-code","responsive-web-design","rsa","rsa-encryption","rsa-key-pair","security","two-factor-authentication"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/harmotus.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":"2025-01-08T08:05:13.000Z","updated_at":"2025-02-05T20:08:50.000Z","dependencies_parsed_at":"2025-01-11T12:15:48.030Z","dependency_job_id":"4215bf5b-3877-4313-a270-b1cbef547a32","html_url":"https://github.com/harmotus/secure-login-one","commit_stats":null,"previous_names":["harmotus/secure-login-one"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/harmotus/secure-login-one","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harmotus%2Fsecure-login-one","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harmotus%2Fsecure-login-one/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harmotus%2Fsecure-login-one/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harmotus%2Fsecure-login-one/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harmotus","download_url":"https://codeload.github.com/harmotus/secure-login-one/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harmotus%2Fsecure-login-one/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29314705,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T17:48:59.043Z","status":"ssl_error","status_checked_at":"2026-02-10T17:45:37.240Z","response_time":65,"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":["2fa","authentication","html5","javascript","login","mysql","mysql-database","password-protection","php","php-authentication","php-login","php-mysqli","php-pdo","qr-code","responsive-web-design","rsa","rsa-encryption","rsa-key-pair","security","two-factor-authentication"],"created_at":"2025-02-01T20:15:13.696Z","updated_at":"2026-02-10T20:32:08.371Z","avatar_url":"https://github.com/harmotus.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Secure Login One\n\nA secure login where the user's private key is never hosted on servers or the user's online devices ( this project can also be used as a form of two-factor authentication ( 2FA ) where the user's private key is never hosted on servers )\n\n## Requirements\n\n![table](docs/table.png)\n\n## Description\n\n**1\u0026nbsp;)\u0026nbsp;** Using an online device (\u0026nbsp;D1\u0026nbsp;) the user goes to the server's login page (\u0026nbsp;S1\u0026nbsp;)\n\n![login1](docs/login1.png)\n\n**2\u0026nbsp;)\u0026nbsp;** The user simply enters his username in the form, and this data is submitted to the server (\u0026nbsp;login.php\u0026nbsp;)\n\n![login2](docs/login2.png)\n\n**3\u0026nbsp;)\u0026nbsp;** If the user's username exists in the server's database (\u0026nbsp;code.php\u0026nbsp;) then the server creates a 12-digit random code, this random code is encrypted with the user's public key, and a QR code containing the encrypted random code is sent to the user (\u0026nbsp;code.php\u0026nbsp;)\n\n![code1](docs/code1.png)\n\n**4\u0026nbsp;)\u0026nbsp;** Using an offline device (\u0026nbsp;D2\u0026nbsp;) the user scans the QR code, the QR code data is decrypted with the user's private key, and this decrypted data is submitted to the server (\u0026nbsp;code.php\u0026nbsp;)\n\n![code2](docs/code2.png)\n\n**5\u0026nbsp;)\u0026nbsp;** If the 12-digit code submitted by the user is correct (\u0026nbsp;test.php\u0026nbsp;) then the user will be able to access the user's home page (\u0026nbsp;home.php\u0026nbsp;)\n\n![home](docs/home.png)\n\n**6\u0026nbsp;)\u0026nbsp;** And the user will also be able to access the user's profile page (\u0026nbsp;profile.php\u0026nbsp;)\n\n![profile](docs/profile.png)\n\n## Types of Philosophy\n\n**\u0026raquo; \u0026nbsp;** Philosophy : **Never-Never**\n\n* Private Keys : (\u0026nbsp;**Never** on servers\u0026nbsp;) and (\u0026nbsp;**Never** on online devices\u0026nbsp;)\n\n* Therefore, public keys only on (\u0026nbsp;online or offline\u0026nbsp;) servers and private keys only on offline devices.\n\n* This philosophy only applies when using asymmetric encryption algorithms (\u0026nbsp;RSA, ECDSA, EdDSA, etc.\u0026nbsp;)\n\n**\u0026raquo; \u0026nbsp;** Philosophy : **Only-Only**\n\n* Private Keys : (\u0026nbsp;**Only** on offline servers\u0026nbsp;) and (\u0026nbsp;**Only** on offline devices\u0026nbsp;)\n\n* Therefore, private keys : never on online servers and never on online devices.\n\n* This philosophy only applies when using symmetric encryption algorithms (\u0026nbsp;AES, 3DES, etc.\u0026nbsp;)\n\n## License\n\n[MIT](https://opensource.org/license/mit)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharmotus%2Fsecure-login-one","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharmotus%2Fsecure-login-one","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharmotus%2Fsecure-login-one/lists"}