Professional Documents
Culture Documents
A PROJECT REPORT
ON
PASSWORD GENERATOR
SUBMITTED BY:
SHILPA MADDI
ABOUT PYTHON
Python is a high level, interpreted and general purpose
dynamic programming language that focuses on code
readability. It has fewer steps when compared to Java and C.
It was founded in 1991 by developer Guido Van Rossum. It is
used in many organizations as it supports multiple
programming paradigms. It also performs automatic
memory management.
Advantages:
Open source and community development
Easy to learn
User-friendly data structures
High-level language
Portable and Interactive
4)Operating Systems
5)Language Development
CREDIT CARD ANALYSIS 2023-24
Source Code:
import random
def generatePassword(pwlength):
alphabet = "abcdefghijklmnopqrstuvwxyz"
passwords = []
for i in pwlength:
password = ""
for j in range(i):
next_letter_index = random.randrange(len(alphabet))
password = replaceWithNumber(password)
password = replaceWithUppercaseLetter(password)
passwords.append(password)
return passwords
3
CREDIT CARD ANALYSIS 2023-24
def replaceWithNumber(pword):
for i in range(random.randrange(1,3)):
replace_index = random.randrange(len(pword)//2)
return pword
def replaceWithUppercaseLetter(pword):
for i in range(random.randrange(1,3)):
replace_index = random.randrange(len(pword)//2,len(pword))
return pword
def main():
4
CREDIT CARD ANALYSIS 2023-24
passwordLengths = []
for i in range(numPasswords):
if length<3:
length = 3
passwordLengths.append(length)
Password = generatePassword(passwordLengths)
for i in range(numPasswords):
main()
5
CREDIT CARD ANALYSIS 2023-24
OUTPUTS
6
CREDIT CARD ANALYSIS 2023-24
SOFTWARE REQUIREMENTS:
I. Windows OS
II. Python
Python Libraries:
Pandas, Matplotlib.
References:
Class –XII Sumitha Arora text book.