0% found this document useful (0 votes)
149 views10 pages

Final Project

This document provides details about a random password generator project created in Python. It includes an introduction to Python and the project objective, which is to generate random passwords of a user-defined length consisting of lowercase, uppercase, numbers and special characters. The implementation chapter describes the methodology, including taking length input from the user, defining a password generation function, and checking that the generated passwords meet the criteria. Graphical representations show the program flow, including requesting a valid length if the initial input is too short. The document concludes by providing the GitHub link where the project code is hosted.

Uploaded by

Alok
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
0% found this document useful (0 votes)
149 views10 pages

Final Project

This document provides details about a random password generator project created in Python. It includes an introduction to Python and the project objective, which is to generate random passwords of a user-defined length consisting of lowercase, uppercase, numbers and special characters. The implementation chapter describes the methodology, including taking length input from the user, defining a password generation function, and checking that the generated passwords meet the criteria. Graphical representations show the program flow, including requesting a valid length if the initial input is too short. The document concludes by providing the GitHub link where the project code is hosted.

Uploaded by

Alok
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/ 10

PROJECT REPORT

Title: Random Password Generator


Project Number – 4
Section – K22CS
As a Field work for Course
INT 108
By

Sr. No. Registration No Name of Students Roll No

1 12209282 Harshdeep Singh Sandhu RK22CSA38

2 12210002 Harsh Choudhary RK22CSA40

3 12216281 Alok Prasad RK22CSA65

Submitted To Mr. Nishant Agnihotri


Lovely Professional University
TABLE OF CONTENT

1. Chapter 1 – Introduction
1.1 - Overview of Python
1.2 - Overview of the Project

2. Chapter 2 - Implementation
2.1- Methodology
2.2- Flowchart

3. Chapter 3 – Pictorial
Representation of Project

4. Conclusion and GitHub links


CHAPTER –1
Introduction
1.1 Python - Python is a high-level, general-purpose programming
language. Python is meant to be an easily readable language. Its
formatting is visually uncluttered and often uses English keywords where
other languages use punctuation. Unlike many other languages, it does
not use curly brackets to delimit blocks, and semicolons after statements
are allowed but rarely used. It has fewer syntactic exceptions and special
cases than C or Pascal. The latest version of python is Python 3.11. 0
It was initially designed by Guido van Rossum in 1991 and developed
by Python Software Foundation. Late 1980s is the time when working
on python started. The programming language in which Python is said
to have succeeded is ABC Programming Language, which had
interfacing with the Amoeba Operating System and had the feature of
exception handling.
For various purposes such as developing, scripting, generation, and
software testing, this language is utilized. Due to its elegance and
simplicity, top technology organizations like Dropbox, Google, Quora,
Mozilla, Hewlett-Packard, Qualcomm, IBM, and Cisco have
implemented Python. Python has come a long way to become the most
popular coding language in the world. Python has just turned 30.
Some of the reasons why python is widely used are –
1. Open Source - The programming language is open source and available to
use for free of cost. Therefore, it attracts lots of beginners

2. Vibrant Community - The community has a long list of users who can help
freshers in finding their objectives quickly.
3. High – Level Language and Easy Readability - Python is considered as a
high-level programming language because of its functionalities. The
language can be used to design both straightforward and complex websites.
Application development is on the rise of this generation because of
consumer demand. The coding format is designed efficiently, which allows
programmers to read and edit easily.
1.2 Introduction of the Project
Title – Random Password Generator

Objective – To create a python program that will generate the random password of
the length defined by the user consisting of lowercase, uppercase and special
characters.

Password security is a very important subject to consider. Without strong


passwords, an adversary will be able to gain access to user accounts, websites, and
more. Text password is a very common user authentication technique. Users face a
major problem, namely that of many site-unique and strong (i.e., non-guessable)
passwords. One way of addressing this is by using a password generator which
generates (and regenerates) site-specific strong passwords on demand, with
minimal user input. Password Generator enables the generation of passwords that
meet important real-world requirements, including forced password changes, use
of pre-specified characters, displaying the number of characters used in password.
A password generator is a software that create arbitrary or tailored passwords for
individuals. It assists individuals to produce more powerful passwords that offer
greater protection for a provided sort of access

There are many potential replacement technologies, including combinations of


biometrics and trusted personal devices, but it seems likely that it will be some
time before passwords are relegated to history. Given their current and likely future
wide use, finding ways of improving the use and management of passwords
remains a vitally important issue. We focus here on an important practical matter,
namely, how to make password more secure and more convenient. Passwords can
be stored either locally or on a trusted server; most browsers provide a local-
storage password man
CHAPTER – 2
Implementation
2.1 Methodology
We didn’t face many difficulties while making the project, because almost
maximum concepts that we applied on our project was taught in class however we
referred to some books like Python programming using problem solving
approach for revising our concepts and learning about modules.

So, Task assigned to us by teacher for mini project is to make a strong password
generator which takes length as input from user and returns a strong password
including mixture of uppercase alphabets, lowercase alphabet, special characters
and numbers in it but it should not include < or > in that password, so that it cannot
cause trouble in browser.

First of all we imported random, a built-in python module to generate random


values then we take integer input from the user for the length of password he want
then applied a while loop in such a manner that if user enters length less than 12
digit then he will be again asked to re-enter length with a comment “ Enter a valid
length ” and this loop will revise same process until user writes a valid length and
fulfill all criteria of input. Then after that a function is defined named as
passwd_generator. In that function first of all an empty string is made with name
passwd and then we made four strings named as lc, uc, num, char and all. Where lc
contains all lowercase alphabets, uc contains all uppercase alphabets, char contains
all of the special characters, num contains all numbers 0 to 9 and string named as
‘all’ contains sum of these following strings lc, uc, num and char. Due which we
get a common string containing each and every type able value. Then we made
four variables named as lcheck, ucheck, ncheck and ccheck for every variable and
all of them were assigned with Boolean value “False”. Then we used a for loop up
to range of that length entered by user, stored in len named variable. That loop
works in such a way that up to the range of entered length it will keep on adding
values from all and stores it in that empty string named as passwd. Then we again
used a for loop upto range passwd and in loop we used If and Elif statements and
the motive behind this is to simply check that our generated password which is
stored in passwd contains element from every variable containing different
elements such as uppercase, lowercase etc. If passwd contains elements of
particular variable then it will simply change the Boolean expression from False to
True of that particular variable and if does not contain then the Boolean expression
of that particular variable will remain False. Then after loop we again applied If
and Else statement outside the loops and if every variable’s Boolean expression if
True then is will simply print that generated strong password but on the other hand
if Boolean expression of any variable is False then again, the function will run and
make a new password.

2.1 Flowchart
CHAPTER – 3
Graphical Representation of the Project

fig. One
Here Module” RANDOM” to generate random value out of given options and it ask user for
length of Password

fig. Two
fig. Four

Here if the length given by user is smaller than 12 then is again ask for “Enter a valid length”
Otherwise it generates the Password

RESULT

fig. Five

When length of password given by user small than 12, then code will ask user to give a valid
input.

fig. Six
When Length is not numeric form, then code ask user to give input in numeric form.

fig. Six
When length of password given by user is more than 12, then code will generate a random
password.
CHAPTER – 4
Code of the project
ON GitHub- https://github.com/Alok-2004/projectclient.git

You might also like