Skip to content
bhavya70020Public

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages