Skip to content

Latest commit

Β 

History

History
84 lines (63 loc) Β· 2.02 KB

README.md

File metadata and controls

84 lines (63 loc) Β· 2.02 KB

Task 03: Password Complexity Checker

A C++ command-line tool designed to evaluate the strength of user passwords based on standard security criteria and provide actionable feedback to help create stronger credentials.


πŸ“Œ Overview

Weak passwords are one of the most common vectors in security breaches. This application analyzes a given password and assesses its complexity by checking for multiple criteria: length, uppercase characters, lowercase characters, numeric digits, and special characters.

✨ Complexity Criteria

  • Uppercase Letters (A-Z): Adds +1 score if present, prompts warning if missing.
  • Lowercase Letters (a-z): Adds +1 score if present, prompts warning if missing.
  • Numeric Digits (0-9): Adds +1 score if present, prompts warning if missing.
  • Special Characters (!@#$%^&* etc.): Adds +1 score if present, prompts warning if missing.
  • Minimum Length: Must be at least 8 characters long (passwords under 8 characters are immediately marked as WEAK PASSWORD).

πŸ“Š Strength Rating Scale

Score Rating
<= 2 WEAK PASSWORD
3 AVERAGE PASSWORD
4 GOOD PASSWORD
5 STRONG PASSWORD

πŸ› οΈ Tech Stack & Requirements

  • Language: C++ (C++11 or higher)
  • Compiler: g++ / MinGW / Clang / MSVC

πŸš€ How to Compile & Run

1. Compile the program

g++ main.cpp -o task3

2. Run the executable

# On Windows:
task3.exe

# On Linux / macOS:
./task3

πŸ’‘ Example Demonstrations

Example 1: Strong Password

Enter your Password: P@ssw0rd2026!
STRONG PASSWORD

Example 2: Weak / Missing Criteria

Enter your Password: password
USE UPPERCASE
USE NUMBER
USE SPECIAL CHARACTERS
AVERAGE PASSWORD

Example 3: Too Short

Enter your Password: Ab1!
MINIMUM LENGTH SHOULD BE 8
WEAK PASSWORD

πŸ“‚ File Structure

task3/
β”œβ”€β”€ main.cpp       # Source code for password strength evaluation
└── README.md      # Documentation