mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 21:42:34 +00:00
auth: User faster app token hash
This commit is contained in:
@@ -206,7 +206,10 @@ impl AuthenticationProvider for SqlitePrincipalStore {
|
|||||||
None,
|
None,
|
||||||
None,
|
None,
|
||||||
Params {
|
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()
|
..Default::default()
|
||||||
},
|
},
|
||||||
&salt,
|
&salt,
|
||||||
|
|||||||
Reference in New Issue
Block a user