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.
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.
- 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).
| Score | Rating |
|---|---|
<= 2 |
WEAK PASSWORD |
3 |
AVERAGE PASSWORD |
4 |
GOOD PASSWORD |
5 |
STRONG PASSWORD |
- Language: C++ (C++11 or higher)
- Compiler:
g++/ MinGW / Clang / MSVC
g++ main.cpp -o task3# On Windows:
task3.exe
# On Linux / macOS:
./task3Enter your Password: P@ssw0rd2026!
STRONG PASSWORD
Enter your Password: password
USE UPPERCASE
USE NUMBER
USE SPECIAL CHARACTERS
AVERAGE PASSWORD
Enter your Password: Ab1!
MINIMUM LENGTH SHOULD BE 8
WEAK PASSWORD
task3/
βββ main.cpp # Source code for password strength evaluation
βββ README.md # Documentation