From ea438764103bc6d89775dba82644f527657b3e7b Mon Sep 17 00:00:00 2001 From: Lennart <18233294+lennart-k@users.noreply.github.com> Date: Tue, 22 Jul 2025 16:10:19 +0200 Subject: [PATCH] auth: User faster app token hash --- crates/store_sqlite/src/principal_store.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/store_sqlite/src/principal_store.rs b/crates/store_sqlite/src/principal_store.rs index 93e1bbb..11c2a3c 100644 --- a/crates/store_sqlite/src/principal_store.rs +++ b/crates/store_sqlite/src/principal_store.rs @@ -206,7 +206,10 @@ impl AuthenticationProvider for SqlitePrincipalStore { None, None, Params { - rounds: 10, + // The app token has a high entropy so we are quite safe from quessing attacks + // Also if an attacker got access to the hashes they'd have already gotten + // access to the whole database. + rounds: 2, ..Default::default() }, &salt,