You are on page 1of 7

CREDIT CARD ANALYSIS 2023-24

A PROJECT REPORT

ON

PASSWORD GENERATOR

As a part of the Informatics Practices Course (065)

SUBMITTED BY:

Name of the Student


1) MOUNEESH K
2) MUDUMALA ESHWAR SAI REDDY
3) RISHIKESH G
4) ROSHAN SARAL KUMAR

Under the guidance of

SHILPA MADDI

DEPARTMENT OF INFORMATICS PRACTICES

SRI CHAITANYA TECHNO SCHOOL

INETRANL EXAMINER EXTERNAL EXAMINER


CREDIT CARD ANALYSIS 2023-24

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

There are many features in Python:


1) GUI based desktop applications(Games, Scientific
Applications)
2)Web frameworks and applications

3)Enterprise and Business applications

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 = password + alphabet[next_letter_index]

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)

pword = pword[0:replace_index] + str(random.randrange(10)) +


pword[replace_index+1:]

return pword

def replaceWithUppercaseLetter(pword):

for i in range(random.randrange(1,3)):

replace_index = random.randrange(len(pword)//2,len(pword))

pword = pword[0:replace_index] + pword[replace_index].upper() +


pword[replace_index+1:]

return pword

def main():

numPasswords = int(input("How many passwords do you want to generate? "))

4
CREDIT CARD ANALYSIS 2023-24

print("Generating " +str(numPasswords)+" passwords")

passwordLengths = []

print("Minimum length of password should be 3")

for i in range(numPasswords):

length = int(input("Enter the length of Password #" + str(i+1) + " "))

if length<3:

length = 3

passwordLengths.append(length)

Password = generatePassword(passwordLengths)

for i in range(numPasswords):

print ("Password #"+str(i+1)+" = " + Password[i])

main()

5
CREDIT CARD ANALYSIS 2023-24

OUTPUTS

6
CREDIT CARD ANALYSIS 2023-24

HARDWARE AND SOFTWARE REQUIREMENTS

I.OPERATING SYSTEM : WINDOWS 7 AND ABOVE

II. PROCESSOR : PENTIUM(ANY) OR AMD

ATHALON(3800+- 4200+ DUALCORE)

III. MOTHERBOARD : 1.845 OR 915,995 FOR PENTIUM 0R MSI

K9MM-V VIAK8M800+8237R PLUS

CHIPSET FOR AMD ATHALON

IV. RAM : 512MB+

V. Hard disk : SATA 40 GB OR ABOVE

VI. CD/DVD r/w multi drive combo: (If back up required)

VII. FLOPPY DRIVE 1.44 MB : (If Backup required)

VIII. MONITOR 14.1 or 15 -17 inch

IX. Key board and mouse

X. Printer : (if print is required – [Hard copy])

SOFTWARE REQUIREMENTS:

I. Windows OS
II. Python
Python Libraries:
Pandas, Matplotlib.
References:
Class –XII Sumitha Arora text book.

You might also like