🔐 Secure C++ Authentication System
A lightweight, console-based authentication system written in C++. This project supports user registration, login, password change, and secure password hashing, storing user data in a .csv file.
🚀 Features:
- 📦 CSV-based data storage
- 🔐 SHA-based password hashing (OpenSSL-free custom implementation)
- 🔍 Check if user already exists
- 📝 Change password functionality
- 🔁 Login with verification
- 🛡️ Secure and efficient C++ logic
File Structure:
project-root/
- system1.cpp #Main logic for authentication
- securehash.cpp #Custom SHA-based hash function
- securehash.h #Header for hash logic
- file.csv #Stores usernames and hashed passwords (autogenerated)
- system1.exe #Executable (Windows)
- README.md #You're here!
How to Build & Run:
Prerequisites:
- A C++17-compatible compiler (like 'g++' or MSVC)
- VS Code / any terminal
Steps:
- Compile the project:
- g++ system1.cpp securehash.cpp -o system1
- Run the executable:
- ./system1 # On Linux/macOS
- system1.exe # On Windows
Demo (Terminal Preview):
Note: All passwords are hashed before being saved. No plain-text credentials are stored.
Feel free to fork, modify, and improve!
- Ayush Thakur
- https://github.com/thakur-027