trade up unnecessary security for speed

This commit is contained in:
blek 2023-10-15 17:38:20 +10:00
parent f6230ee51a
commit 06a281aa08
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
use argon2::{Argon2, Params};
pub fn get_argon2() -> Argon2<'static> {
argon2::Argon2::new(argon2::Algorithm::Argon2id, argon2::Version::V0x13, Params::new(65535, 4, 4, Some(64)).unwrap())
argon2::Argon2::new(argon2::Algorithm::Argon2id, argon2::Version::V0x13, Params::new(256, 2, 2, Some(32)).unwrap())
}