From ff93101341f0e233131573ca0ae90bd201372860 Mon Sep 17 00:00:00 2001 From: Sergey Kolupaev Date: Thu, 5 Mar 2026 11:25:35 -0800 Subject: [PATCH] Password score calculation hangs if password is too long --- keepercommander/utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/keepercommander/utils.py b/keepercommander/utils.py index a28cb5b99..384ab4926 100644 --- a/keepercommander/utils.py +++ b/keepercommander/utils.py @@ -304,6 +304,10 @@ def password_score(password): # type: (str) -> int return score total = len(password) + if total > 50: + # this password score implementation hangs if password is too long + password = password[:50] + total = 50 uppers = 0 lowers = 0 digits = 0