Hi, I'm doing an SHA-1 algorithm exercise with Python 3.4 and Tkinter
My problem is that I do not know how to show the result of the conversion of my caja1
to the caja2
. Here is the code:
from tkinter import *
from hashlib import sha1
def encriptar():
sha1(texto).hexdigest()
ventana = Tk()
ventana.geometry("600x320")
texto = StringVar()
texto_encriptado = StringVar()
caja1 = Entry(ventana, textvariable=texto).place(x=150, y=50)
botonEncriptar = Button(ventana, text="Encriptar", command=encriptar).place(x=150, y=100)
caja2 = Entry(ventana, textvariable=texto_encriptado, width=40).place(x=150, y=200)
ventana.mainloop()