filmov
tv
Build A Strong Passward Generator App- Python Tkinter GUI Tutorial

Показать описание
coding for random passward in python , tkinter (Tk), random and pyperclip.
@TechnoTidbits
#passward
#randompassward
To keep your account safe and prevent your password from being hacked you have to make your password hard enough that nobody can guess.
-------------------------------------------------------------------------------------------------------------
--source code( copy and paste the below code)
#importing Libraries
from tkinter import *
import random, string
import pyperclip
###initialize window
root =Tk()
#heading
heading = Label(root, text = 'PASSWORD GENERATOR' , font ='arial 15 bold').pack()
Label(root, text ='Kamio Tech', font ='arial 15 bold').pack(side = BOTTOM)
###select password length
pass_label = Label(root, text = 'PASSWORD LENGTH', font = 'arial 10 bold').pack()
pass_len = IntVar()
length = Spinbox(root, from_ = 8, to_ = 32 , textvariable = pass_len , width = 15).pack()
#####define function
pass_str = StringVar()
def Generator():
password = ''
for x in range (0,4):
###button
Button(root, text = "GENERATE PASSWORD" , command = Generator ).pack(pady= 5)
Entry(root , textvariable = pass_str).pack()
########function to copy
def Copy_password():
Button(root, text = 'COPY TO CLIPBOARD', command = Copy_password).pack(pady=5)
# loop to run program
----------------------------------------------------------------------------------------------------------------
Thanks for watching
@TechnoTidbits
#passward
#randompassward
To keep your account safe and prevent your password from being hacked you have to make your password hard enough that nobody can guess.
-------------------------------------------------------------------------------------------------------------
--source code( copy and paste the below code)
#importing Libraries
from tkinter import *
import random, string
import pyperclip
###initialize window
root =Tk()
#heading
heading = Label(root, text = 'PASSWORD GENERATOR' , font ='arial 15 bold').pack()
Label(root, text ='Kamio Tech', font ='arial 15 bold').pack(side = BOTTOM)
###select password length
pass_label = Label(root, text = 'PASSWORD LENGTH', font = 'arial 10 bold').pack()
pass_len = IntVar()
length = Spinbox(root, from_ = 8, to_ = 32 , textvariable = pass_len , width = 15).pack()
#####define function
pass_str = StringVar()
def Generator():
password = ''
for x in range (0,4):
###button
Button(root, text = "GENERATE PASSWORD" , command = Generator ).pack(pady= 5)
Entry(root , textvariable = pass_str).pack()
########function to copy
def Copy_password():
Button(root, text = 'COPY TO CLIPBOARD', command = Copy_password).pack(pady=5)
# loop to run program
----------------------------------------------------------------------------------------------------------------
Thanks for watching