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()