{"id":29861184,"url":"https://github.com/atharvbyadav/hashgate-authentication-system","last_synced_at":"2025-07-30T04:13:03.948Z","repository":{"id":280311961,"uuid":"941587030","full_name":"atharvbyadav/HashGate-Authentication-System","owner":"atharvbyadav","description":"A secure, file-based user authentication system in C++ with SHA-256 password hashing, root-protected user management, and hidden password input. Serves as the front-end login module for a larger application.","archived":false,"fork":false,"pushed_at":"2025-06-07T12:18:36.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-07T12:29:53.638Z","etag":null,"topics":["authentication","authentication-system","cpp","login-system","security","sha256","terminal-app"],"latest_commit_sha":null,"homepage":"https://atharvbyadav.github.io/HashGate-Authentication-System/","language":"C++","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/atharvbyadav.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-03-02T16:38:37.000Z","updated_at":"2025-06-07T12:18:41.000Z","dependencies_parsed_at":"2025-03-03T11:29:38.006Z","dependency_job_id":null,"html_url":"https://github.com/atharvbyadav/HashGate-Authentication-System","commit_stats":null,"previous_names":["atharvbyadav/login-encryption","atharvbyadav/hashgate-authentication-system"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/atharvbyadav/HashGate-Authentication-System","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atharvbyadav%2FHashGate-Authentication-System","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atharvbyadav%2FHashGate-Authentication-System/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atharvbyadav%2FHashGate-Authentication-System/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atharvbyadav%2FHashGate-Authentication-System/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atharvbyadav","download_url":"https://codeload.github.com/atharvbyadav/HashGate-Authentication-System/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atharvbyadav%2FHashGate-Authentication-System/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267808420,"owners_count":24147391,"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":["authentication","authentication-system","cpp","login-system","security","sha256","terminal-app"],"created_at":"2025-07-30T04:13:03.341Z","updated_at":"2025-07-30T04:13:03.930Z","avatar_url":"https://github.com/atharvbyadav.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🔐 HashGate Authentication System (Stage 1)\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#\"\u003e\n    \u003cimg alt=\"Language|C++\" src=\"https://img.shields.io/badge/Language-C++-blue?style=for-the-badge\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"#\"\u003e\n    \u003cimg alt=\"SHA-256|HASHING\" src=\"https://img.shields.io/badge/SHA--256-Hashing-critical?style=for-the-badge\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"#\"\u003e\n    \u003cimg alt=\"PLATFORM\" src=\"https://img.shields.io/badge/Platform-Linux%20%7C%20Windows-informational?style=for-the-badge\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"#\"\u003e\n    \u003cimg alt=\"LICENSE\" src=\"https://img.shields.io/badge/License-MIT-success?style=for-the-badge\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.python.org/downloads/\"\u003e\n    \u003cimg alt=\"STAGE|1\" src=\"https://img.shields.io/badge/Project%20Stage-1--of--X-yellow?style=for-the-badge\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n## 📝 Overview\n\nThe **HashGate Authentication System** is a secure, file-based user authentication program written in C++. It provides a simple yet effective way to manage user authentication with the following features:\n\n- **🔑 User Login** with SHA-256 hashed passwords.\n- **👤 User Creation** (requires root password verification).\n- **🗑️ User Deletion** (requires root password verification and confirmation).\n- **🔒 Secure Root Password Setup** on the first run.\n- **🙈 Hidden Password Input** for security during login and root password prompts.\n\nThis system ensures that user credentials are stored securely using hashing techniques and provides a basic but effective local authentication mechanism.\n\n🚀 **Note:** This program is just a part of a bigger project I am working on. It serves as the **front-end login system** for a larger application currently under development.\n\n## 🚀 Features\n\n- **SHA-256 Hashing**: Ensures passwords are stored securely.\n- **Root Password Protection**: Required for adding and deleting users.\n- **Hidden Password Input**: Conceals passwords while typing.\n- **File-Based Storage**: User credentials are stored safely in local files (`users.dat` and `root.dat`).\n\n## 🛠️ How It Works\n\n1. **First Run Setup**: The system prompts the user to set a **root password** (this cannot be changed later).\n2. Users can:\n   - **🔑 Login** with a username and password.\n   - **➕ Create a new user** (requires root password verification).\n   - **🗑️ Delete a user** (requires root password verification and confirmation).\n   - **❌ Exit** the program.\n3. Passwords are stored **securely as SHA-256 hashes** to prevent unauthorized access.\n\n## ⚙️ Setup and Compilation\n\n### **Requirements**\n\n- C++ compiler (e.g., `g++` for Linux or MinGW for Windows)\n- OpenSSL library for SHA-256 hashing\n\n### **Compilation on Linux**\n\n```sh\n g++ authentication.cpp -o hashgate -lssl -lcrypto\n```\n\n### **Compilation on Windows (MinGW)**\n\n```sh\ng++ authentication.cpp -o hashgate.exe -lssl -lcrypto\n```\n\n## 📌 Usage\n\n1. Run the compiled executable:\n   ```sh\n   ./hashgate   # Linux\n   hashgate.exe # Windows\n   ```\n2. **First Run**:\n   - The program will prompt for a **root password**.\n   - This password is required to create or delete users.\n3. **🔑 Login**:\n   - Enter a valid username and password.\n   - If correct, access is granted; otherwise, an error is shown.\n4. **➕ Create a User**:\n   - Enter the root password.\n   - Provide a new username and password.\n5. **🗑️ Delete a User**:\n   - Enter the root password.\n   - Provide the username to delete.\n   - Confirm deletion.\n6. **❌ Exit** the program by selecting option `4`.\n\n## 🔒 Security Considerations\n\n- **Root Password Security**: The root password is stored as a SHA-256 hash and cannot be changed after setup.\n- **User Passwords**: Stored securely using SHA-256 hashing.\n- **File Storage**:\n  - `root.dat`: Contains the hashed root password.\n  - `users.dat`: Stores user credentials in `username:hashed_password` format.\n\n## 📜 License\n\nThis project is open-source and free to use under the MIT License.\nContributions and suggestions are welcome! 🚀\n\n## 🤝 Collaboration \u0026 Contributions\n\nI am open to collaboration if you have great ideas to implement! Feel free to **open issues**, **submit pull requests** or discuss enhancements. Let's make **HashGate Authentication System** even better together! 💡🔧\n\n## 📬 Contact\n\n- **👨‍💻 Author**: Atharv Yadav\n- **🌐 Website**: [atharvbyadav.github.io](https://atharvbyadav.github.io)\n- **🐙 GitHub**: [@atharvbyadav](https://github.com/atharvbyadav)\n- **📧 Email**: [uuwr5t1s@duck.com](mailto:uuwr5t1s@duck.com)  \n  _Looks suspicious? Good. It’s mine. The ducks work for me. 🦆💻_\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatharvbyadav%2Fhashgate-authentication-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatharvbyadav%2Fhashgate-authentication-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatharvbyadav%2Fhashgate-authentication-system/lists"}