85% found this document useful (20 votes)
33K views

Password Generator Project - Final

This document describes a project report for developing a random password generator that was created by 5 students and submitted to fulfill the requirements for a Bachelor of Technology degree. The report includes an abstract, requirements, design, implementation, testing, development and maintenance, output, and conclusion sections. It was certified by the project guide and head of the department.

Uploaded by

saikiran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
85% found this document useful (20 votes)
33K views

Password Generator Project - Final

This document describes a project report for developing a random password generator that was created by 5 students and submitted to fulfill the requirements for a Bachelor of Technology degree. The report includes an abstract, requirements, design, implementation, testing, development and maintenance, output, and conclusion sections. It was certified by the project guide and head of the department.

Uploaded by

saikiran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

A

Project Report on

RANDOM PASSWORD GENERATOR


Submitted in partial fulfillment for the award of the
degree of
BACHELOR OF TECHNOLOGY
Submitted by

MANNE SAI KIRAN - 21N31A6734


NIRMAL HRUDAY - 21N31A6734
K. SAI PRANEETH - 21N31A6700
R. POOJITHA - 21N31A6734
B. UMA NEHA -21N31A6714

Under the esteemed guidance of


Mrs. D KALPANA B. Tech, M. Tech
Assistant Professor
Department of
CSE
Emerging Technologies

DEPARTMENT OF HUMANITIES AND SCIENCES


MALLA REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Autonomous Institution-UGC, Govt.of India)
Affiliated to JNTUH, Hyderabad – Approved by AICTE – NBA Accredited – NAAC Accredited by A Grade – ISO 9008-2015 Certified
Maisammaguda, Dhulapally(Post) Via Hakimpet, Secunderabad 500 100

2021 - 22
MALLA REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Autonomous Institution-UGC, Govt. of India)
(Affiliated to JNTUH, Hyderabad - Approved by AICTE - NBA Accredited – NAAC Accredited by ‘A’ Grade - ISO 9001:2015 Certified)
Maisammaguda, Dhulappaly(Post) Via Hakimpet, Secunderabad – 500 100

CERTIFICATE
This is to certify that this is the bonafide record of the project titled “Random Password
Generator” submitted by

MANNE SAI KIRAN - 21N31A6734


R. POOJITHA - 21N31A6747
G. NIRMAL HRUDAY - 21N31A6716
B. UMA NEHA - 21N31A6710
K. SAI PRANEETH - 21N31A6727
of First Year B.Tech in the partial fulfillment of the requirements for the degree of Bachelor
of Technology in Computer Science and Engineering during the year 2016-17. The results
embodied in this project report have not been submitted to any other University or Institute for
the award of any degree or diploma.

Mrs. D KALPANA Dr V.MADHUSUDHANA REDDY


B.Tech, M.Tech Ph. D
INTERNAL GUIDE HEAD - DEPARTMENT OF H&S
ACKNOWLEDGEMENT
We feel ourselves honored and privileged to place our warm salutation to our college
MALLA REDDY COLLEGE OF ENGINEERING & TECHNOLOGY and
DEPARTMENT OF HUMANITIES & SCIENCES which gave us the opportunity to
have expertise in Engineering and profound technical knowledge.

We would like to convey thanks to our Internal Project Guide Mrs. D KALPANA for
his regular guidance and constant encouragement and we are extremely grateful to him for his
valuable suggestions and unflinching cooperation throughout project work.

With profound gratitude, we express our heartiest thanks to DR V. MADHUSUDHANA


REDDY, HEAD, DEPARTMENT OF HUMANITIES & SCIENCES for encouraging us
in every aspect of our project.

We wish to convey gratitude to DR. S SRINIVASA RAO, for providing us with the
environment and means to enrich our skills and motivating us in our endeavor and helping us
realize our full potential.

With Regards and Gratitude

Manne Sai Kiran


G. Nirmal Hruday
K. Sai Praneeth
R. Poojitha
B. Uma Neha
DECLARATION
We hereby declare that the Project entitled “RANDOM PASSWORD
GENERATOR” submitted to Malla Reddy College of Engineering &
Technology, affiliated to Jawaharlal Nehru Technological University,
Hyderabad for the award of the Degree of the Bachelor of Technology in
Computer Science Engineering is a result of original work doneby us.

It is further declared that the Project Report or any part thereof has not been
previously submitted to any University or Institute for the award of degree or
diploma.

MANNE SAI KIRAN 21N31A6734

NIRMAL HRUDAY 21N31A6714

K. SAI PRANEETH 21N31A6714

R. POOJITHA 21N31A6747

B. UMA NEHA 21N31A6714


INDEX

CHAPTER NO TITLE OF THE CHAPTER PAGE NO


1 Abstract 1
2 Requirements 2
3 Design 3
4 Implementation 5
5 Testing 8
6 Development And Maintenance 9
7 Output 10
8 Conclusion 11
9 Biblography 12
BOOK PASSWORD
RANDOM SHOP MANAGEMENT SYSTEM
GENERATOR MRCET

CHAPTER 1

ABSTRACT

Security is one of the most crucial parts of our lives. The importance of security is increasing day by day
as most things are going online. Passwords come into light as we talk about security. In this project, we
will create a password generator that helps us generate random and strong passwords quickly.
The best thing about creating our own password generator is that we can customize it as we like.

First, we will create a password generator that asks the length of the password and generates a random
password containing digits, alphabets, and special characters. Next, we will improve it by asking the
number of each type of character, like the number of digits, alphabets, and special characters. We try to
guarantee that the program will include digits and special characters by asking the user to enter the
number of digits, alphabets, and special characters they want. When the user enters the number of
characters for each type, the program will include the respective number of character types into the
password.

DEPARTMENT
DEPARTMENTOFOF
COMPUTER SCIENCE
HUMANITIES ANDAND ENGINEERING
SCIENCES 1
BOOK PASSWORD
RANDOM SHOP MANAGEMENT SYSTEM
GENERATOR MRCET

CHAPTER 2
REQUIREMENTS

System requirements:
1. Requirements at developer’s end:

Hardware: operating system: MS Windows XP or Ubuntu


Language: Python
RAM: 512 MB
Hard disk: 5GB
Software: Python 3
2. Requirements at client’s end:

Hardware
Software

DEPARTMENT
DEPARTMENTOFOF
COMPUTER SCIENCE
HUMANITIES ANDAND ENGINEERING
SCIENCES 2
BOOK PASSWORD
RANDOM SHOP MANAGEMENT SYSTEM
GENERATOR MRCET

CHAPTER 3
DESIGN

1. Start
2. Store all the characters as a list. Use the sting module of Python to store them all.
3. Ask the user to enter the length of the password.
4. Shuffle the characters using random.shuffle method
5. Initialize an empty list to store the password.
6. Write a loop that iterates length times
- Pick a random character from all the characters using random.choice method
- Append the random character to the password
7. Shuffle the resultant password list to make it random.
8. Convert the password list to string using the join method.
9. Print the password.

DEPARTMENT
DEPARTMENT OFOF HUMANITIES
COMPUTER ANDAND
SCIENCE SCIENCES
ENGINEERING 3
BOOK PASSWORD
RANDOM SHOP MANAGEMENT SYSTEM
GENERATOR MRCET

CHAPTER 4
IMPLEMENTATION

During the implementation process, developers must write enough comments inside the code
so that if anybody starts working on the code later, he/she can understand what has already
been written. Writing good comments is very important as all other documents, no matter how
good they are, will be lost eventually. Ten years after the initial work, you may find only that
information which is present inside the code in the form of comments.
Development tools also play an important role in this phase of the project. Good development
tools save a lot of time for the developers, as well as saving money in terms of improved
productivity. The most important development tools for time saving are editors and debuggers.
A good editor helps a developer to write code quickly. A good debugger helps make the written
code operational in a short period. Before starting the coding process, you should spend some
time choosing good development tools.

DEPARTMENT
DEPARTMENT OFOF
COMPUTER SCIENCE
HUMANITIES ANDAND ENGINEERING
SCIENCES 5
BOOK PASSWORD
RANDOM SHOP MANAGEMENT SYSTEM
GENERATOR MRCET

IMPLEMENTATION:

import string
import random

## characters to generate password from


alphabets = list(string.ascii_letters)
digits = list(string.digits)
special_characters = list("!@#$%^&*()")
characters = list(string.ascii_letters + string.digits + "!@#$%^&*()")

def generate_random_password():
## length of password from the user
length = int(input("Enter password length: "))

## number of character types


alphabets_count = int(input("Enter alphabets count in password: "))
digits_count = int(input("Enter digits count in password: "))
special_characters_count = int(input("Enter special characters count in password: "))

characters_count = alphabets_count + digits_count + special_characters_count

## check the total length with characters sum count


## print not valid if the sum is greater than length
if characters_count > length:
print("Characters total count is greater than the password length")
return

## initializing the password


password = []

## picking random alphabets


for i in range(alphabets_count):
password.append(random.choice(alphabets))

## picking random digits


for i in range(digits_count):
password.append(random.choice(digits))

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING 6


BOOK PASSWORD
RANDOM SHOP MANAGEMENT SYSTEM
GENERATOR MRCET

cost=300;
## picking random alphabets
for i in range(special_characters_count):
break;
password.append(random.choice(special_characters))
default:printf(“invalid choice”);
break;
## if the total characters count is less than the password length
} ## add random characters to make it equal to the length
if characters_count < length:
printf(“enter random.shuffle(characters)
no of copies”);
scanf(“%d”,&n);
for i inprintf(“please
range(length pay amount of %d rupees\n,n*cost);
- characters_count):
password.append(random.choice(characters))
getch();

## shuffling the resultant password


random.shuffle(password)

## converting the list to string


## printing the list
print("".join(password))

## invoking the function


generate_random_password()

DEPARTMENT
DEPARTMENTOFOF
COMPUTER SCIENCE
HUMANITIES ANDAND ENGINEERING
SCIENCES 7
BOOK PASSWORD
RANDOM SHOP MANAGEMENT SYSTEM
GENERATOR MRCET

CHAPTER 5
TESTING
Testing is probably the most important phase for long-term support as well as for the reputation
of the company. If you don’t control the quality of the software, it will not be able to compete
with other products on the market. If software crashes at the customer site, your customer loses
productivity as well money and you lose credibility. Sometimes these losses are huge. Unhappy
customers will not buy your other products and will not refer other customers to you. You can
avoid this situation by doing extensive testing.

Example test case:


Test case 1:

Sample Input:

Enter password length:


Enter alphabets count in password:
Enter digits count in password:
Enter special characters count in password:

Expected output:
A randomly generated password with the number of respective characters.

Supplied Input:
Enter password length: 10
Enter alphabets count in password: 3
Enter digits count in password: 2
Enter special characters count in password: 3

Obtained output:
V2(&#XlQq1

If you see the password generated this time, it has the minimum number of characters that the user
wants. And the program has included 2 more random characters to make the password length equal to
user input.

Hurray! We have a complete strong password generator.

DEPARTMENT
DEPARTMENTOFOF
COMPUTER SCIENCE
HUMANITIES ANDAND ENGINEERING
SCIENCES 8
BOOK PASSWORD
RANDOM SHOP MANAGEMENT SYSTEM
GENERATOR MRCET

CHAPTER 6
DEVELOPMENT AND MAINTENANCE

The program should be opened in Python 3 software and it is executed by the user. The
input screen appears where the user inputs the required information. The output is
automatically displayed on the screen i.e.; the generated password is displayed on the
screen.

Since the password can be generated as per the given numbers of characters. It will be easy
for the user to customize it as required.

DEPARTMENT
DEPARTMENTOFOF
COMPUTER SCIENCE
HUMANITIES ANDAND ENGINEERING
SCIENCES 9
BOOK PASSWORD
RANDOM SHOP MANAGEMENT SYSTEM
GENERATOR MRCET

CHAPTER 7
OUTPUT

Enter password length: 12

Enter alphabets count in password: 3

Enter digits count in password: 3

Enter special characters count in password: 6

1$*4q$()7G$p

Enter password length: 10

Enter alphabets count in password: 3

Enter digits count in password: 2

Enter special characters count in password: 3

V2(&#XlQq1

DEPARTMENT
DEPARTMENTOFOF
COMPUTER SCIENCE
HUMANITIES ANDAND ENGINEERING
SCIENCES 10
BOOK PASSWORD
RANDOM SHOP MANAGEMENT SYSTEM
GENERATOR MRCET

CHAPTER 8
CONCLUSION

With the help of this project one can easily generate a random password anytime he/she
wants. This project is very useful for those who are always in a perplexed state about what
password to use for a tight security purpose.

As these passwords are randomly generated, no one can ever guess them and therefore it
provides a tight security be it for lockers or any software etc. which requires protection from
outsiders. We can also add many other features to improvise the code as per our requirement
and make sure that the resultant password is strong enough.

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING 11


BOOK PASSWORD
RANDOM SHOP MANAGEMENT SYSTEM
GENERATOR MRCET

CHAPTER 9
BIBLIOGRAPHY

Text books referred:


 Learning Python – Mark Lutz

Websites referred:
 https://www.wikipedia.org/
 https://geekflare.com/password-generator-python-code/

DEPARTMENT
DEPARTMENT OFOF HUMANITIES
COMPUTER ANDAND
SCIENCE SCIENCES
ENGINEERING 12

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy