Skip to content
This repository was archived by the owner on Mar 10, 2026. It is now read-only.

Commit 0f96c17

Browse files
committed
add: warning for weak / no passwords
1 parent 21b17f8 commit 0f96c17

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ui/password_window.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,19 @@ def submit(self):
4545
self.status_label.config(text="Passwords do not match.")
4646
return
4747

48+
if len(password) < 8:
49+
if not messagebox.askyesno("No Password", "Password is less than 8 characters long, this is insecure. Are you sure you want to continue?"):
50+
return
51+
52+
53+
4854
if not password:
4955
if not messagebox.askyesno("No Password", "You entered no password. Continue anyway?"):
5056
return
57+
58+
if not messagebox.askyesno("No Password", "Disabling encryption allows anyone with access to your device to see your contacts, and cryptographic keys. Do this only in fully trusted environments. Are you sure?"):
59+
return
60+
5161
self.destroy()
5262
self.callback(password)
5363

0 commit comments

Comments
 (0)