Reduce scrypt work factor to speed up websocket authentication
Co-authored-by: Mikayla Maki <mikayla@zed.dev>
This commit is contained in:
parent
9633a4b527
commit
623133ffa0
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ fn hash_access_token(token: &str) -> Result<String> {
|
|||
let params = if cfg!(debug_assertions) {
|
||||
scrypt::Params::new(1, 1, 1).unwrap()
|
||||
} else {
|
||||
scrypt::Params::recommended()
|
||||
scrypt::Params::new(14, 8, 1).unwrap()
|
||||
};
|
||||
|
||||
Ok(Scrypt
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue