PROJECT REPORT
On
“Password Strength Analyzer Using Hashing”
[Python Programming Post-Lab]
Submitted By:
Vinit Gharad
[CS24062]
Guided By:
Ms. Ashvini Tarar
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING
S. B. JAIN INSTITUTE OF TECHNOLOGY
MANAGEMENT AND RESEARCH, NAGPUR.
(An Autonomous Institute, Affiliated to RTMNU, Nagpur)
2025-2026
© S.B.J.I.T.M.R Nagpur 2026
S.B. JAIN INSTITUTE OF TECHNOLOGY MANAGEMENT AND
RESEARCH, NAGPUR
(An Autonomous Institute, Affiliated to RTMNU, Nagpur)
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING
SESSION 2025-2026
CERTIFICATE
This is to certify that the Mini Project titled “Password Strength Analyzer Using Hashing” is
a bonafide work of Vinit Gharad carried out for the partial fulfillment of course work of
“Python Programming (N-SECCS401P)”, 4th Semester, Bachelor of Technology in
Computer Science & Engineering, S. B. Jain Institute of Technology, Management &
Research, Nagpur.
Ms. Ashvini Tarar Dr. Anup Gade
Assistant Professor Head of Department
(Project Guide)
INDEX
CERTIFICATE i
INDEX ii
LIST OF FIGURES iii
CHAPTER 1 INTRODUCTION 1
CHAPTER 2 METHODOLOGY 2-3
CHAPTER 3 TOOLS/PLATFORMS 4
CHAPTER 4 DESIGN & IMPLEMENTATION 5-8
4.1 ALGORITHM
4.2 FLOWCHART
4.3 SOURCE CODE
CHAPTER 5 RESULT & DISCUSSION 9-11
5.1 OUTPUT
5.2 DISCUSSION
5.3 APPLICATION
CHAPTER 6 CONCLUSION 12
REFERENCES 13
2
LIST OF FIGURES
FIG. NO. TITLE OF FIGURE PAGE NO.
1 Chapter 1: Introduction 4
2 Chapter 2: Methodology 5
3 Chapter 3: Tools / Platforms 6
4 Chapter 4: Design & Implementation 7-9
5 Chapter 5: Result & Discussion 10-11
6 Chapter 6: Conclusion 12
3
CHAPTER 1
INTRODUCTION
With the rapid growth of digital platforms and online services, password security has become a
critical aspect of protecting user data. Weak passwords are one of the most common causes of
security breaches, making it essential to evaluate password strength effectively.
This project focuses on developing a Password Strength Analyzer that checks the strength of user-
entered passwords using hashing techniques and predefined security rules. The system evaluates
passwords based on length, complexity, and comparison with commonly used passwords.
Features:
• User input-based system
• Password hashing using SHA-256
• Detection of common passwords
• Strength classification (Weak, Moderate, Strong)
• Simple console-based implementation
Background and Motivation
In today’s digital world, users often create weak passwords that are easy to guess or already exposed
in data breaches. Organizations use password strength analyzers to ensure better security.
The motivation behind this project is to understand:
• Cybersecurity fundamentals
• Hashing techniques
• Password validation mechanisms
This project helps in learning real-world applications of data security and cryptography concepts.
CHAPTER 2
METHODOLOGY
1. User Input
The system takes a password as input from the user for analysis.
2. Password Analysis
The entered password is evaluated based on the following criteria:
• Length (minimum 8 characters)
• Presence of uppercase letters
• Presence of lowercase letters
• Inclusion of numeric digits
• Use of special characters
3. Hashing Technique
The password is converted into a secure hash using the SHA-256 algorithm.
This ensures safe comparison of passwords without storing them in plain text format, thereby
enhancing security.
4. Common Password Check
The hashed password is compared with a dataset of hashed commonly used passwords.
• If a match is found → the password is considered weak
• This helps in identifying passwords that are easily guessable or widely used
5. Strength Evaluation
Based on the evaluation score, the password is classified into:
• Weak 🔴
• Moderate 🟡
• Strong 🟢
2
CHAPTER 3
TOOLS/PLATFORMS
3.1 SOFTWARE REQUIREMENT
1. Programming Language:
Python is a high-level programming language used to develop the game. It is easy to use, readable,
and supports quick development.
2. IDE / Code Editor The code is written and executed using tools such as:
• VS Code
• PyCharm
• IDLE
These provide features like syntax highlighting and debugging.
[Link] Used
The project uses Python’s built-in random module for:
• hashlib → for hashing
• re → for pattern matching
[Link] System
The program can run on:
• Windows
• Linux
• macOS
3
CHAPTER 4
DESIGN & IMPLEMENTATION
4.1 ALGORITHM
• Start
• Input password from user
• Check length
• Check uppercase, lowercase, digits, special characters
• Convert password into hash
• Compare with common password hashes
• Calculate score
• Display strength
• Stop
4.2 FLOWCHART
Fig. 4.1.1 flowchart of password security
4
4.3 SOURCE CODE
import re
def check_password_strength(password):
score = 0
# Length check
if len(password) >= 8:
score += 1
# Uppercase
if [Link](r"[A-Z]", password):
score += 1
# Lowercase
if [Link](r"[a-z]", password)
score += 1
# Digit
if [Link](r"[0-9]", password):
score += 1
# Special character
if [Link](r"[!@#$%^&*]", password):
score += 1
# Strength result
if score <= 2:
return "Weak 🔴"
elif score <= 4:
return "Moderate 🟡"
else:
5
return "Strong 🟢"
# ---- Main Program ----
password = input("Enter your password: ")
result = check_password_strength(password)
print("Password Strength:", result)
6
CHAPTER 5
RESULT & DISCUSSION
5.1 OUTPUT
Fig. 5.1.1 output
5.2 DISCUSSION
The system successfully evaluates password strength using:
• Pattern checking
• Hashing for security
• Comparison with common passwords
Advantages:
• Simple and efficient
• Improves password security awareness
• Uses real-world cybersecurity concepts
5.3 APPLICATION
• Login systems
• Banking applications
• Social media platforms
• Security tools
7
CHAPTER 6
CONCLUSION
This project demonstrates how hashing and validation techniques can be used to
analyze password strength. It helps users create secure passwords and prevents
common security risks.
The project improves understanding of:
• Hashing techniques
• Cybersecurity basics
• Real-world implementation of secure systems
REFERENCE
• Python Documentation
• Cybersecurity Fundamentals
• Cryptography Concepts
• Online Tutorials