Skip to content

sinan-ashraf/password-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” Password Strength Checker

A simple, CLI-based Python tool to evaluate password strength based on entropy. It analyzes the variety and length of characters in a password and provides feedback and recommendations accordingly.

πŸš€ Features

  • Calculates password entropy using character pool and length.
  • Classifies passwords as:
    • ❌ Too Weak
    • ⚠️ Weak
    • 🟑 Decent
    • βœ… Strong
  • Offers actionable recommendations for improving password strength.
  • No internet or external dependencies (other than Python standard library).

πŸ“– What is Entropy?

Entropy is a measure of unpredictability or randomness. In the context of passwords, higher entropy means it's harder for attackers to guess or brute-force your password.

Formula used:

Entropy = log2(pool_size) Γ— password_length

πŸ’» How to Use

1. Clone the Repository

git clone https://github.com/sinan-ashraf/password-checker.git
cd password-checker

2. Run the Script

python password_checker.py

You’ll see a prompt: Enter password: β€” just type in any password to test it.

πŸ“ Example

Enter password: hello123
βœ— Weak password (35.4 bits entropy)
Decent, but could be stronger.
Enter password: @G7vLp#2qR
βœ“ Strong password (64.2 bits entropy)
Strong password!

πŸ”§ Customization

You can change the minimum acceptable entropy in the code:

MIN_ENTROPY = 30

Recommended values:

  • 20+: Basic
  • 30+: Good
  • 40+: Strong

About

Password Strength Checker

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages