Make a strong password is very difficult for many of us and we end up using our names and nicknames as the passwords, which in this case is very wrong.
If you are one of us who use our names as the password, you need a tool that can be used to generate a strong password for your phones and laptops.
Codes
import random
from tkinter import *
import string
def generate_password():
password=[]
for i in range(5):
alpha=random.choice(string.ascii_letters)
symbol=random.choice(string.punctuation)
numbers=random.choice(string.digits)
password.append(alpha)
password.append(symbol)
password.append(numbers)
y=" ".join(str(x)for x in password)
lb.config(text=y)
root=Tk()
root.geometry('200x200')
btn=Button(root,text="generate password" ,command=generate_password,bg="red",fg="green")
btn.grid(row=2,column=4)
lb=Label(root,font=('times',15,'bold'),bg="blue")
lb.grid(row=8,column=4)
root.mainloop()