Thanks to visit codestin.com
Credit goes to github.com

Skip to content

thakur-027/cpp-auth-system

Repository files navigation

🔐 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:

  1. Compile the project:
  • g++ system1.cpp securehash.cpp -o system1
  1. Run the executable:
  • ./system1 # On Linux/macOS
  • system1.exe # On Windows

Demo (Terminal Preview):

image
image
image
image
image
image
image

Note: All passwords are hashed before being saved. No plain-text credentials are stored.

Feel free to fork, modify, and improve!

About

C++ console-based authentication system with password and file I/O

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages