Documentation 1
Documentation 1
PROJECT
REPORT
ON
RANDOM
PASSWROD
GENERATOR
INTRODUCTION
Password Generator
Project Prerequisites
To build this project we will use the basic concept
of python and libraries – Tkinter, pyperclip, random,s
tring.
Tkinter is a standard GUI library and is one of the
easiest ways to build a GUI application.
pyperclip module allows us to copy and paste
text to and from the clipboard to your computer
The random module can generate random
numbers
String module contains a number of functions to
process the standard python string.
For coding purpose Microsoft Visual Studio idea was
used and code was written using python language.
Project File Structure
Let’s check the step to build a Password Generator
using Python
Import modules
Initialized Window
Select Password Length
Define Function
Methodology
Reference:
● You tube (Code With Harry)
● GitHub
Source Code
import string
import random
s1 = list(string.ascii_lowercase)
s2 = list(string.ascii_uppercase)
s3 = list(string.digits)
s4 = list(string.punctuation)
while True:
try:
characters_number = int(user_input)
if characters_number < 8:
else:
break
except:
random.shuffle(s1)
random.shuffle(s2)
random.shuffle(s3)
random.shuffle(s4)
result = []
for x in range(part1):
result.append(s1[x])
result.append(s2[x])
for x in range(part2):
result.append(s3[x])
result.append(s4[x])
# shuffle result
random.shuffle(result)
# join result
password = "".join(result)
Thank You