{"id":22619865,"url":"https://github.com/akshatvg/secure-hashed-authentication","last_synced_at":"2025-07-31T01:40:32.586Z","repository":{"id":116031053,"uuid":"306741064","full_name":"akshatvg/Secure-Hashed-Authentication","owner":"akshatvg","description":"blake2b \u0026 md5 based registration and login in PHP to show a secure hashed password.","archived":false,"fork":false,"pushed_at":"2020-10-27T13:28:43.000Z","size":176,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-29T01:42:12.856Z","etag":null,"topics":["algorithm","authentication","blake2b","blake2b-hash-algorithm","cyber-security","hashing","login","md5","networks","nis","php","project","register","security"],"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/akshatvg.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-10-23T20:32:07.000Z","updated_at":"2024-03-29T18:35:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"63f74b25-862a-44fc-9774-b50854596493","html_url":"https://github.com/akshatvg/Secure-Hashed-Authentication","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"akshatvg/template","purl":"pkg:github/akshatvg/Secure-Hashed-Authentication","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akshatvg%2FSecure-Hashed-Authentication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akshatvg%2FSecure-Hashed-Authentication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akshatvg%2FSecure-Hashed-Authentication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akshatvg%2FSecure-Hashed-Authentication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akshatvg","download_url":"https://codeload.github.com/akshatvg/Secure-Hashed-Authentication/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akshatvg%2FSecure-Hashed-Authentication/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267973199,"owners_count":24174400,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["algorithm","authentication","blake2b","blake2b-hash-algorithm","cyber-security","hashing","login","md5","networks","nis","php","project","register","security"],"created_at":"2024-12-08T22:09:41.671Z","updated_at":"2025-07-31T01:40:32.575Z","avatar_url":"https://github.com/akshatvg.png","language":"PHP","readme":"# Secure Hashed Authentication\n\n[![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/akshatvg/Secure-Hashed-Authentication?logo=github\u0026style=social)](https://github.com/akshatvg/) [![GitHub last commit](https://img.shields.io/github/last-commit/akshatvg/Secure-Hashed-Authentication?style=social\u0026logo=git)](https://github.com/akshatvg/) [![GitHub stars](https://img.shields.io/github/stars/akshatvg/Secure-Hashed-Authentication?style=social)](https://github.com/akshatvg/Secure-Hashed-Authentication/stargazers) [![GitHub forks](https://img.shields.io/github/forks/akshatvg/Secure-Hashed-Authentication?style=social\u0026logo=git)](https://github.com/akshatvg/Secure-Hashed-Authentication/network)\n\nblake2b \u0026 md5 based registration and login in PHP to show a secure hashed password.\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://coinguides.org/wp-content/uploads/2018/08/blake-2b.jpg\" height=\"120px\" alt=\"blake2b\"/\u003e\n\u003cimg src=\"https://websalutem.com/wp-content/uploads/md5_checksum.jpg\" height=\"120px\" alt=\"md5\"/\u003e\n\u003c/p\u003e\n\n![Generic badge](https://img.shields.io/badge/Secure_Hashed-Authentication-orange) \n\n## How it works\n- The project uses both blake2b and md5 to hash the password so it can't be unencrypted or stolen or intercepted.\n- We first remove backslashes to ensure no XSS Attack can take place.\n- We then escape special characters in a string to ensure SQL Injection and XSS Attacks aren't possible. This doesn't affect the password's strength as the user enters the same password to login as while signing up. He/she won't even know this procedure took place.\n- The password is hashed with the blake2b hashing algorithm.\n- The password is then hashed with the md5 hashing algorithm.\n- The same procedure is repeated for both login and registration to ensure the final hashed value is the same and hence login doesn't fail.\n\n## Useful Links\n\n- [deemru's blake2b implementation in PHP](https://github.com/deemru/Blake2b)\n\n## Requirements\n\n[![GitHub top language](https://img.shields.io/github/languages/top/akshatvg/Secure-Hashed-Authentication?logo=php\u0026style=social)](https://github.com/akshatvg/)\n\nThe source code of this project is written in **`PHP`**. You will need to install composer to run this project.\n\n## Instructions\n1. Enter the following commands in terminal or the command prompt:\n```bash\n$ git clone https://github.com/akshatvg/Secure-Hashed-Authentication\n$ cd Secure-Hashed-Authentication\n$ composer install\n```\n2. Import `database.sql` into any database and then enter these details in `db.php`.\n3. Register and then login.\n\n\n## Need help?\n\n\nFeel free to contact me via [Facebook](https://www.facebook.com/akshatvg).\n\nInvite me to connect on [LinkedIn](https://www.linkedin.com/in/akshatvg/).\n\n[![Facebook](https://img.shields.io/badge/Facebook-add-blue.svg?logo=facebook\u0026logoColor=white)](https://www.facebook.com/akshatvg) [![Quora](https://img.shields.io/badge/Quora-ask-red.svg?logo=quora)](https://www.quora.com/profile/Akshat-Gupta-279) [![Instagram](https://img.shields.io/badge/Instagram-follow-purple.svg?logo=instagram\u0026logoColor=white)](https://www.instagram.com/akshatvg/) [![Snapchat](https://img.shields.io/badge/Snapchat-add-yellow.svg?logo=snapchat\u0026logoColor=white)](https://www.snapchat.com/add/akshatvg) [![Medium](https://img.shields.io/badge/Medium-follow-black.svg?logo=medium\u0026logoColor=white)](https://medium.com/@akshatvg)\n\n\n```bash\n\n\n\n _____ _                 _     __   __            \n|_   _| |               | |    \\ \\ / /            \n  | | | |__   __ _ _ __ | | __  \\ V /___  _   _   \n  | | | '_ \\ / _` | '_ \\| |/ /   \\ // _ \\| | | |  \n  | | | | | | (_| | | | |   \u003c    | | (_) | |_| |  \n  \\_/ |_| |_|\\__,_|_| |_|_|\\_\\   \\_/\\___/ \\__,_|  \n                                                  \n                                                  \n______                                            \n|  ___|                                           \n| |_ ___  _ __                                    \n|  _/ _ \\| '__|                                   \n| || (_) | |                                      \n\\_| \\___/|_|                                      \n                                                  \n                                                  \n______      _               _   _               _ \n| ___ \\    (_)             | | | |             | |\n| |_/ / ___ _ _ __   __ _  | |_| | ___ _ __ ___| |\n| ___ \\/ _ \\ | '_ \\ / _` | |  _  |/ _ \\ '__/ _ \\ |\n| |_/ /  __/ | | | | (_| | | | | |  __/ | |  __/_|\n\\____/ \\___|_|_| |_|\\__, | \\_| |_/\\___|_|  \\___(_)\n                     __/ |                        \n                    |___/                         \n\n \n\n\n```\n\n## License\n\n**MIT \u0026copy; [Akshat Gupta](https://github.com/akshatvg/Secure-Hashed-Authentication/blob/master/LICENSE)**\n\n[![GitHub license](https://img.shields.io/github/license/akshatvg/Secure-Hashed-Authentication?style=social\u0026logo=github)](https://github.com/akshatvg/Secure-Hashed-Authentication/blob/master/LICENSE) [![Twitter Follow](https://img.shields.io/twitter/follow/akshatvg?style=social)](https://twitter.com/akshatvg)\n\n---------\n\n```javascript\n\nif (youEnjoyed) {\n    starThisRepository();\n}\n\n```\n\n-----------\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakshatvg%2Fsecure-hashed-authentication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakshatvg%2Fsecure-hashed-authentication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakshatvg%2Fsecure-hashed-authentication/lists"}