Secure Login System (Python)
A secure authentication system built in Python demonstrating key cybersecurity principles such as password hashing, input validation, and protection against brute-force attacks.
Features: User registration and login system. Secure password hashing using bcrypt. Password strength validation. Protection against brute-force attacks (account lock after 3 failed attempts). Modular and maintainable code structure.
Security Concepts Shown: Secure password storage (hashing + salting). Authentication best practices. Brute-force attack mitigation. Input validation.
Installation:
pip install -r requirements.txtUsage:
python main.pyExample: Register a user with a strong password. Attempt login with correct and incorrect credentials. Observe account lock after multiple failed attempts.
Future Imporvements: Replace in-memory storage with SQLite database. Implement multi-factor authentication (MFA). Add password reset functionality.
Author: Zain Talib