Skip to content

Commit

Permalink
rebuild binaries
Browse files Browse the repository at this point in the history
added some spacing between elements that were not displaying well with large fonts.

removed some left-over test code in set-master-key.py.
  • Loading branch information
kaotickj committed Nov 14, 2023
1 parent b6104b6 commit 6f4e32f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 34 deletions.
Binary file modified bin/pwgenie.exe
Binary file not shown.
Binary file modified bin/set-master-key.exe
Binary file not shown.
9 changes: 5 additions & 4 deletions pwgenie.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@ def derive_key(master_key, salt):

# GUI Setup
app = tk.Tk()
app.title("Password Genie") # Keep the application name as "Password Genie"
app.title("Password Genie")

# Set the size of the main window
app.geometry("300x400")

# Set the system icon
#app.iconphoto(True, tk.PhotoImage(file="icon.png"))
app.iconbitmap("icon.ico")

# Entry for the user's master pass-key
Expand Down Expand Up @@ -333,15 +334,15 @@ def show_about_dialog():

button_hash = tk.Button(app, text="Hash Password", command=hash_password)
ToolTip(button_hash, "Hash the entered password")
button_hash.place(x=150, y=160)
button_hash.place(x=170, y=160)

button_save = tk.Button(app, text="Save Password", command=save_password)
ToolTip(button_save, "Save the password for the specified platform")
button_save.place(x=10, y=190)

button_retrieve = tk.Button(app, text="Retrieve Password", command=retrieve_password)
ToolTip(button_retrieve, "Retrieve and decrypt the password for the specified platform")
button_retrieve.place(x=150, y=190)
button_retrieve.place(x=170, y=190)

button_verify_master_password = tk.Button(app, text="Verify Master Password", command=verify_master_password)
ToolTip(button_verify_master_password, "Verify the entered master password")
Expand All @@ -357,4 +358,4 @@ def show_about_dialog():
copy_button.place(x=10, y=290)

# Main Event Loop
app.mainloop()
app.mainloop()
30 changes: 0 additions & 30 deletions set-master-key.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,35 +28,9 @@ def derive_key(master_key, salt):
label_master_key = tk.Label(app, text="Master Pass-Key:")
entry_master_key = tk.Entry(app, show="*") # Use show="*" to hide the entered characters




# Flag to check if the master password is set
master_password_set = None # Initialize as None


# Function to handle password hashing
def hash_password():
global master_password_set

if not master_password_set:
messagebox.showerror("Error", "Please set the initial master password first.")
return

password = entry_password.get()

if not password:
messagebox.showerror("Error", "Please enter a password to hash.")
return

# Hash the password using SHA-256
digest = hashes.Hash(hashes.SHA256(), backend=default_backend())
digest.update(password.encode())
hashed_password = digest.finalize()

messagebox.showinfo("Hashed Password", f"The hashed password is: {hashed_password.hex()}")


# Function to set the initial master password
def set_master_password():
global master_password_set
Expand Down Expand Up @@ -110,8 +84,6 @@ def leave(self, event):
if self.tooltip:
self.tooltip.destroy()



# Place widgets using the place method
label_master_key.place(x=10, y=10)
entry_master_key.place(x=150, y=10)
Expand All @@ -121,7 +93,5 @@ def leave(self, event):
ToolTip(button_set_master_password, "Set the initial master password")
button_set_master_password.place(x=10, y=40)



# Main Event Loop
app.mainloop()

0 comments on commit 6f4e32f

Please sign in to comment.