PROJECT SYNOPSIS WITH SOURCE CODE
Project Title: Secure Password Generator and Strength Analyzer Using Python
1. Introduction
Passwords are essential for protecting digital systems. Weak passwords can be hacked easily. This
project generates secure passwords and checks their strength using Python.
2. Problem Statement
Users often create weak passwords. This project solves the problem by generating strong
passwords automatically.
3. Objectives
• Generate secure passwords
• Analyze password strength
• Improve security awareness
4. Scope
Used for password generation and strength analysis in educational and personal applications.
5. Literature Survey
Cybersecurity research shows strong passwords improve security. Python provides tools to
implement password generators.
6. Proposed System
System generates passwords using random characters and checks strength.
7. System Architecture
Input → Generate Password → Check Strength → Display Output
8. Methodology
User enters length → System generates password → System checks strength → Output displayed
9. Tools and Technologies
Python, random module, string module, VS Code
10. Hardware and Software Requirements
Intel i3+, 4GB RAM, Python 3.x, Windows OS
11. Expected Outcomes
Secure password generation and strength analysis.
12. Applications
Cybersecurity, education, personal password protection
13. Source Code
import random
import string
# Function to generate password
def generate_password(length):
letters = string.ascii_letters
digits = [Link]
symbols = [Link]
all_characters = letters + digits + symbols
password = ""
for i in range(length):
password += [Link](all_characters)
return password
# Function to check strength
def check_strength(password):
has_letter = any([Link]() for char in password)
has_digit = any([Link]() for char in password)
has_symbol = any(char in [Link] for char in password)
score = has_letter + has_digit + has_symbol
if len(password) >= 12 and score == 3:
return "Strong"
elif len(password) >= 8 and score >= 2:
return "Medium"
else:
return "Weak"
# Main program
print("PASSWORD GENERATOR")
length = int(input("Enter password length: "))
password = generate_password(length)
print("Generated Password:", password)
strength = check_strength(password)
print("Password Strength:", strength)