-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGUI SHA-1.py
More file actions
85 lines (63 loc) · 1.56 KB
/
GUI SHA-1.py
File metadata and controls
85 lines (63 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
from getpass import getpass
from hashlib import sha1
import pyperclip
import tkinter as tk
def check():
if password != repeat:
see_label["text"]="PASSWORD DID NOT MATCH"
a = sha1(password.encode('utf-8'))
see_label["text"]= "SHA-1: " +a.hexdigest()
window=tk.Tk()
window.geometry("500x260") #width x height
window.grid_columnconfigure((0,1), weight=1)
window.title("SHA-1")
passw = tk.Label(
text="Enter Password: ",
width=30,
font=('Helvetica', 12, 'bold')
)
password=tk.Entry( width =20)
repass=tk.Label(
text="Repeat Password: ",
width=30,
font=('Helvetica',12, 'bold')
)
repeat=tk.Entry(width=20)
see=tk.Label(
height=3,
width=20,
bg='white',
fg='black',
font=('Times New Roman', 12, 'italic')
)
Result=tk.Button(
text='RESULT',
height=1,
width=20,
bg='red',
fg='black',
command = check ,
font=('Times New Roman', 12, 'italic')
)
texts=tk.Label(
text="PS-Password is not visible ",
height=1,
width=20,
font=('Helvetica', 12, 'bold')
)
about=tk.Label(
text='''
This is a created by Ankita Upadhyay.
Suggestions are welcome.Contact-9920315721
''',
fg="grey",
height=2,)
passw.grid(row=1,columnspan=1)
password.grid(row=1,columnspan=2)
repass.grid(row=3,columnspan=1)
repeat.grid(row=3,columnspan=2)
texts.grid(row=4,columnspan=1)
Result.grid(row=6,columnspan=2)
see.grid(row= 8,columnspan=2)
about.grid(row=10,columnspan=2)
window.mainloop()