summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDjLegolas <djlegolas@protonmail.com>2022-01-22 21:23:40 +0200
committerCalum Lind <calumlind+deluge@gmail.com>2022-01-23 16:39:24 +0000
commit7c9a542006d82880011ff33de22c6db947019340 (patch)
tree428e5fa4b2c539b2972da18702158458f354e6a3
parente75ef7e31f3a8befd6365acbf8b7ebbb774bb5e5 (diff)
downloaddeluge-7c9a542006d82880011ff33de22c6db947019340.tar.gz
deluge-7c9a542006d82880011ff33de22c6db947019340.tar.bz2
deluge-7c9a542006d82880011ff33de22c6db947019340.zip
[GTK] Hide account password length in log
We should not let anyone know the account's password length, as it can help to crack it. Instead, we will print a constant amount (10) of asterisks. Closes: https://github.com/deluge-torrent/deluge/pull/346
-rw-r--r--deluge/ui/gtk3/menubar.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/deluge/ui/gtk3/menubar.py b/deluge/ui/gtk3/menubar.py
index a78a2472f..a812a8cac 100644
--- a/deluge/ui/gtk3/menubar.py
+++ b/deluge/ui/gtk3/menubar.py
@@ -567,7 +567,7 @@ class MenuBar(component.Component):
account_to_log = {}
for key, value in account.copy().items():
if key == 'password':
- value = '*' * len(value)
+ value = '*' * 10
account_to_log[key] = value
known_accounts_to_log.append(account_to_log)
log.debug('_on_known_accounts: %s', known_accounts_to_log)