bluehost

Showing posts with label password generator. Show all posts
Showing posts with label password generator. Show all posts

Thursday, 1 July 2021

How To Make Password Generator With Python.

Everyone needs a password to protect his or her smartphone or desktop from unauthorized personnel. In this case, we need a strong password such that, no one can even guess the right password and get to unlock our gadgets.

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.

Now, this article is a short project which python beginners can use to boost their coding skills.


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()


React vs Angular; Front-End Web Development

Angular and React  are two of the most popular Javascript tools for front-end development. React is a Javascript created by Meta...