π Password Hasher GUI in Python | MD5, SHA256, SHA512 – FuzzuTech
Demo :
Click Video πππ
π Description:
Want to hash passwords securely in Python with just one click?
Here’s a beginner-friendly GUI tool made usingtkinter
andhashlib
that supports MD5, SHA256, and SHA512 algorithms.
This project is ideal for beginners in cybersecurity and Python GUI app development.
π Features :
-
GUI with modern UI
-
Multiple hash formats (MD5, SHA256, SHA512)
-
Built with
tkinter
andhashlib
-
Perfect for learning hashing concepts and password encryption basics
Code :
import tkinter as tk
from tkinter import ttk, messagebox
import hashlib
# Function to hash the input text
def hash_text():
text = input_text.get()
method = hash_method.get()
if not text:
messagebox.showwarning("Input Missing", "Please enter some text to hash.")
return
if method == "MD5":
result = hashlib.md5(text.encode()).hexdigest()
elif method == "SHA256":
result = hashlib.sha256(text.encode()).hexdigest()
elif method == "SHA512":
result = hashlib.sha512(text.encode()).hexdigest()
else:
result = "Invalid method"
output_text.delete(0, tk.END)
output_text.insert(0, result)
# Create main window
app = tk.Tk()
app.title("Password Hasher - FuzzuTech")
app.geometry("500x300")
app.config(bg="#f5f5f5")
# Styling
style = ttk.Style()
style.theme_use("clam")
style.configure("TButton", font=("Segoe UI", 10, "bold"), padding=6)
style.configure("TLabel", font=("Segoe UI", 10), background="#f5f5f5")
# Input Label
ttk.Label(app, text="Enter Text to Hash:").pack(pady=(20, 5))
input_text = ttk.Entry(app, width=50)
input_text.pack()
# Dropdown for method
ttk.Label(app, text="Select Hash Method:").pack(pady=(15, 5))
hash_method = ttk.Combobox(app, values=["MD5", "SHA256", "SHA512"], state="readonly")
hash_method.current(0)
hash_method.pack()
# Hash Button
ttkn = ttk.Button(app, text="Generate Hash", command=hash_text)
ttkn.pack(pady=20)
# Output Label
ttk.Label(app, text="Hashed Output:").pack()
output_text = ttk.Entry(app, width=50)
output_text.pack()
# Run the app
app.mainloop()
Comments
Post a Comment