Storing Passwords In a Vault Encrypted Format





 from tkinter import *

import hashlib

def enc():

file = open('Vault.txt','a') 

result = hashlib.sha256(T.get().encode())

file.write(W.get()+":"+result.hexdigest()+"\n")

top=Tk(className='Store Your Passwords In A Vault')

top.geometry("500x300")

top.configure(background='#48426d')


var = StringVar()

c = StringVar()

K = Label(top,textvariable=c)

c.set("Password for ")

W = Entry(top )



P=Label(top,textvariable=var)

var.set("Enter the password ")

B = Button(top, text ="Store", command = enc)

T = Entry(top ,show="*")

K.pack()

W.pack()

P.pack()

T.pack()

B.pack()


top.mainloop()