From f4ef3bca2dd2c0d74af23096a3bddb9455cf1dab Mon Sep 17 00:00:00 2001 From: RustDesk <71636191+rustdesk@users.noreply.github.com> Date: Mon, 11 May 2026 17:18:44 +0800 Subject: [PATCH] Update config.rs --- src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index c12de8e54..144ee224b 100644 --- a/src/config.rs +++ b/src/config.rs @@ -44,7 +44,7 @@ pub const ENCRYPT_MAX_LEN: usize = 128; // used for password, pin, etc, not for const PERMANENT_PASSWORD_HASH_PREFIX: &str = "01"; const PERMANENT_PASSWORD_H1_LEN: usize = 32; -const DEFAULT_SALT_LEN: usize = 6; +const DEFAULT_SALT_LEN: usize = 32; fn is_permanent_password_hashed_storage(v: &str) -> bool { decode_permanent_password_h1_from_storage(v).is_some()