--- gsecrets/password_generator.py 2026-02-22 21:59:13.000000000 +0800 +++ gsecrets/password_generator.py 2026-05-05 00:04:12.000000000 +0800 @@ -7,7 +7,7 @@ import typing from gi.repository import GLib -from zxcvbn_rs_py import zxcvbn +from zxcvbn import zxcvbn if typing.TYPE_CHECKING: from collections.abc import Callable @@ -100,7 +100,7 @@ :rtype: int """ if password: - return int(zxcvbn(password).score) + return int(zxcvbn(password)["score"]) return 0