mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 22:52:22 +00:00
Decrease number of rounds for app token hash
This commit is contained in:
@@ -198,7 +198,7 @@ impl AuthenticationProvider for SqlitePrincipalStore {
|
|||||||
None,
|
None,
|
||||||
None,
|
None,
|
||||||
Params {
|
Params {
|
||||||
rounds: 1000,
|
rounds: 100,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
&salt,
|
&salt,
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ pub struct PwhashArgs {
|
|||||||
long,
|
long,
|
||||||
short = 'r',
|
short = 'r',
|
||||||
help = "ONLY for pbkdf2: Number of rounds to calculate",
|
help = "ONLY for pbkdf2: Number of rounds to calculate",
|
||||||
default_value_t = 1000
|
default_value_t = 100
|
||||||
)]
|
)]
|
||||||
rounds: u32,
|
rounds: u32,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user