Password Original PDF
Password Original PDF
creates strong and random passwords for various online accounts and services.
These passwords are typically difficult for hackers to guess, enhancing the
include a specific length, character types (letters, numbers, symbols), and other
criteria to meet your security needs. It’s an essential tool for maintaining online
1
NEED OF COMPUTERIZATION:
Computerization of password generators offers several advantages:
1.Efficiency: Computerized password generators can quickly generate large
generation.
them more secure than human-created passwords, which tend to follow patterns
restrictions.
manage generated passwords, making it easier to retrieve them when needed and
2
7.Accessibility: Computerized password generators are readily accessible on a
updates and improvements to stay ahead of evolving security threats and provide
3
SOFTWARE AND HARDWARE REQUIREMENTS:
The software and hardware requirements for a password generator can vary
depending on its complexity and the platform it’s built for. Here are some general
guidelines:
Software Requirements:
1.Programming Language: You’ll need a programming language to develop the
2.Operating System: Specify the target OS for your generator, whether it’s
Hardware Requirements:
password generator. For basic generators, most modern CPUs should suffice.
2.Memory (RAM): Again, this depends on the complexity and scale of your
be adequate.
4
3.Storage: You won’t need much storage space for a password generator
application itself. However, you might need some space to store configuration
files or logs.
you’ll need a display and graphics capabilities compatible with your chosen GUI
framework.
5
ADVANTAGES ON PASSWORD GENERATOR:
Password generators offer several advantages, especially when used
passwords that are difficult for attackers to guess or crack. This significantly
don’t follow common patterns like “123456” or “password,” which are often
targeted by attackers.
special characters), and exclusions, giving you control over the level of security.
6
LIMITATIONS:
Password generators are valuable tools for enhancing online security, but
random, making them difficult for users to remember. This can lead to users
generators and may not know how to create strong passwords manually, which
compromised, you may have trouble accessing your accounts. This emphasizes
restricted environments.
5.Not Ideal for All Situations: Password generators are best suited for online
accounts. They may not be suitable for physical security or systems where
7
SOURCE CODE:
import random
import time
def anyrandompass():
lower="abcdefghijklmnopqrstuvwxyz"
upper="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
n="01234456789"
s="!@#$%^&*()."
str=upper+lower+n+s
passwd="".join(random.sample(str,len))
print(passwd)
if s=='y':
import mysql.connector as a
b=a.connect(host="localhost",user="root",passwd="a7$phDdj0@",databa
se="password_gene")
c=b.cursor()
c.execute(q)
b.commit()
b.close()
print('Successfully saved')
8
elif s=='n':
time.sleep(1)
else:
print('Wrong input')
def custompassword1():
lower="abcdefghijklmnopqrstuvwxyz"
upper="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
n="01234456789"
s="!@#$%^&*()."
str=upper+lower+n+s
passwd="".join(random.sample(str,len-2))
p=a+passwd+b
print(p)
if s=='y':
import mysql.connector as a
b=a.connect(host="localhost",user="root",passwd="a7$phDdj0@",databa
se="password_gene")
c=b.cursor()
9
q='insert into password (pass,len) values("{0}",{1})'.format(p,len)
c.execute(q)
b.commit()
b.close()
time.sleep(1)
print('Successfully saved')
elif s=='n':
else:
print('Wrong input')
def custompassword2():
print('*********Enter',leng,'letters**********')
time.sleep(1)
print("Enter",leng-len(strg),"more letters:")
a=input("Enter here:")
if len(strg)==leng or len(strg)>leng:
break
else:
strg=strg+a
passwd="".join(random.sample(strg,leng))
print(passwd)
10
s=input('Do you want to save the password(y/n):')
if s=='y':
import mysql.connector as a
b=a.connect(host="localhost",user="root",passwd="a7$phDdj0@",databa
se="password_gene")
c=b.cursor()
c.execute(q)
b.commit()
b.close()
time.sleep(1)
print('Successfully saved')
elif s=='n':
time.sleep(1)
else:
print('Wrong input')
def shuffling():
word="".join(random.sample(strg,len(strg)))
print(word)
def menu1():
print("1.Random password")
print("2.Custom password")
11
print("3.Shuffler")
time.sleep(1)
print('*********************************')
if a==1:
anyrandompass()
elif a==2:
print("1.Custom1")
print("2.Custom2")
if b==1:
print("Helps to create your password with your willing first and last
letter")
time.sleep(1)
if c=='y':
custompassword1()
else:
pass
elif b==2:
time.sleep(1)
if c=='y':
12
custompassword2()
else:
pass
else:
shuffling()
def menu2():
d='y'
while d=='y':
print("1.Add a record")
print("2.Update a record")
print("3.Delete a record")
print("4.Display a record")
print("5.Exiting")
time.sleep(1)
print('********************************************')
if a==1:
add()
time.sleep(1)
print('****Successfully added****')
elif a==2:
update()
time.sleep(1)
13
print('****Successfully updated****')
elif a==3:
delete()
time.sleep(1)
print('****Successfully deleted****')
elif a==4:
display()
time.sleep(1)
print('****Successfully displayed****')
elif a==5:
print('####Exiting####')
break
else:
print("Wrong input")
def add():
import mysql.connector as a
b=a.connect(host="localhost",user="root",passwd="a7$phDdj0@",databa
se="password_gene")
c=b.cursor()
i=int(input('Enter no.:'))
p=input('Enter password:')
l=int(input('Enter length:'))
14
c.execute(q)
b.commit()
b.close()
def update():
import mysql.connector as a
b=a.connect(host="localhost",user="root",passwd="a7$phDdj0@",databa
se="password_gene")
c=b.cursor()
try:
q="""update password
set pass='%s'
where pname='%s'"""%(p,n)
c.execute(q)
b.commit()
b.close()
except Expection as e:
print(e)
def delete():
import mysql.connector as a
b=a.connect(host="localhost",user="root",passwd="a7$phDdj0@",databa
se="password_gene")
c=b.cursor()
b.commit()
b.close()
def display():
import mysql.connector as a
b=a.connect(host="localhost",user="root",passwd="a7$phDdj0@",databa
se="password_gene")
c=b.cursor()
try:
print('1.Display all')
print('2.With conditions')
time.sleep(1)
k=int(input('Enter choice(1/2):'))
print('********************************')
if k==1:
c.execute('select
pid,"Description:",pname,"password:",pass,"Length:",len from
password')
else:
q='select pid,"Description:",pname,"password:",pass,"Length:",len
from password where pname="{0}"'.format(n,)
c.execute(q)
g=c.fetchall()
if g!='Empty set':
for i in g:
16
print(i)
else:
except:
def menu():
c='y'
while c=='y':
print('1.Create password')
print('2.Viewing and modifying your password')
time.sleep(1)
print('***********************************')
if l==1:
menu1()
elif l==2:
menu2()
else:
print('Wrong input')
time.sleep(1)
17
Sample output:
Table password:
Structure of password:
Data in password:
18
Random password portal:
19
Custom password2 portal:
Shuffler portal:
20
Viewing and Modifying portal:
21
Updating data portal:
22
Displaying all data portal:
23
Exiting portal:
24
FUTURE ENHANCEMENT:
The future enhancements of password generators are likely to focus on addressing
emerging security challenges and improving user experience. Here are some
learning and artificial intelligence to create even more secure and context-aware
influence how password generators are used and integrated into authentication
workflows.
friendliness. This includes creating passwords that are not only secure but also
management, making it easier for users to generate, store, and autofill complex
passwords.
25
6.Multi-Platform Support: Password generators should be available and
compatible with a wide range of devices and platforms, including mobile devices,
security standards.
educational features to guide users on password security best practices and offer
cyber threats.
26
Bibliography:
27